mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-12 22:55:08 +01:00
run migrations & build assets after updating status
This commit is contained in:
parent
37f9e27ac4
commit
009f6443d3
@ -260,10 +260,6 @@ class PluginService
|
|||||||
try {
|
try {
|
||||||
$this->manageComposerPackages(json_decode($plugin->composer_packages, true, 512));
|
$this->manageComposerPackages(json_decode($plugin->composer_packages, true, 512));
|
||||||
|
|
||||||
$this->runPluginMigrations($plugin);
|
|
||||||
|
|
||||||
$this->buildAssets();
|
|
||||||
|
|
||||||
if ($enable) {
|
if ($enable) {
|
||||||
$this->enablePlugin($plugin);
|
$this->enablePlugin($plugin);
|
||||||
} else {
|
} else {
|
||||||
@ -271,6 +267,10 @@ class PluginService
|
|||||||
$this->disablePlugin($plugin);
|
$this->disablePlugin($plugin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->buildAssets();
|
||||||
|
|
||||||
|
$this->runPluginMigrations($plugin);
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
$this->handlePluginException($plugin, $exception);
|
$this->handlePluginException($plugin, $exception);
|
||||||
}
|
}
|
||||||
@ -296,14 +296,14 @@ class PluginService
|
|||||||
|
|
||||||
$this->rollbackPluginMigrations($plugin);
|
$this->rollbackPluginMigrations($plugin);
|
||||||
|
|
||||||
$this->buildAssets();
|
|
||||||
|
|
||||||
if ($deleteFiles) {
|
if ($deleteFiles) {
|
||||||
$this->deletePlugin($plugin);
|
$this->deletePlugin($plugin);
|
||||||
} else {
|
} else {
|
||||||
$this->setStatus($plugin, PluginStatus::NotInstalled);
|
$this->setStatus($plugin, PluginStatus::NotInstalled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->buildAssets();
|
||||||
|
|
||||||
$this->manageComposerPackages(oldPackages: $pluginPackages);
|
$this->manageComposerPackages(oldPackages: $pluginPackages);
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
$this->handlePluginException($plugin, $exception);
|
$this->handlePluginException($plugin, $exception);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user