mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 00:50:32 +00:00
update
This commit is contained in:
parent
1c879c04fe
commit
b953b7fd38
2 changed files with 11 additions and 0 deletions
|
@ -51,6 +51,11 @@ class Modules extends Page
|
|||
|
||||
ModulesManager::saveInstalledModule($this->installModule);
|
||||
|
||||
$moduleInfo = ModulesManager::getModuleInfo($this->installModule);
|
||||
if (isset($moduleInfo['adminUrl'])) {
|
||||
return $this->redirect($moduleInfo['adminUrl']);
|
||||
}
|
||||
|
||||
$this->dispatch('close-modal', id: 'install-module-modal');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,11 @@ class ModulesManager
|
|||
if (isset($moduleJson['category'])) {
|
||||
$category = $moduleJson['category'];
|
||||
}
|
||||
$adminUrl = '';
|
||||
if (isset($moduleJson['adminUrl'])) {
|
||||
$adminUrl = $moduleJson['adminUrl'];
|
||||
}
|
||||
|
||||
$url = '';
|
||||
$installed = 0;
|
||||
$findModule = Module::where('name', $module)->first();
|
||||
|
@ -54,6 +59,7 @@ class ModulesManager
|
|||
'name' => $module,
|
||||
'description' => 'A drag and drop website builder and a powerful next-generation CMS.',
|
||||
'url' => $url,
|
||||
'adminUrl' => $adminUrl,
|
||||
'iconUrl' => url('images/modules/' . $module . '.png'),
|
||||
'logoIcon' => $logoIcon,
|
||||
'category' => $category,
|
||||
|
|
Loading…
Reference in a new issue