UX improvements for managing plugins.
Fixes #5127, also will force a page reload after changing the status of a plugin (remove, disable, enable, etc) so that the menu structure is accurately reflected.
This commit is contained in:
parent
86496ff818
commit
fbb470c7ee
|
|
@ -450,12 +450,15 @@ class Updates extends Controller
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contacts the update server for a list of necessary updates.
|
* Contacts the update server for a list of necessary updates.
|
||||||
|
*
|
||||||
|
* @param bool $force Whether or not to force the redownload of existing tools
|
||||||
|
* @return string The rendered "execute" partial
|
||||||
*/
|
*/
|
||||||
public function onForceUpdate()
|
public function onForceUpdate($force = true)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$manager = UpdateManager::instance();
|
$manager = UpdateManager::instance();
|
||||||
$result = $manager->requestUpdateList(true);
|
$result = $manager->requestUpdateList($force);
|
||||||
|
|
||||||
$coreHash = array_get($result, 'core.hash', false);
|
$coreHash = array_get($result, 'core.hash', false);
|
||||||
$coreBuild = array_get($result, 'core.build', false);
|
$coreBuild = array_get($result, 'core.build', false);
|
||||||
|
|
@ -706,7 +709,7 @@ class Updates extends Controller
|
||||||
'system::project.owner' => $result['owner'],
|
'system::project.owner' => $result['owner'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $this->onForceUpdate();
|
return $this->onForceUpdate(false);
|
||||||
}
|
}
|
||||||
catch (Exception $ex) {
|
catch (Exception $ex) {
|
||||||
$this->handleError($ex);
|
$this->handleError($ex);
|
||||||
|
|
@ -878,7 +881,7 @@ class Updates extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
Flash::success(Lang::get("system::lang.plugins.{$bulkAction}_success"));
|
Flash::success(Lang::get("system::lang.plugins.{$bulkAction}_success"));
|
||||||
return $this->listRefresh('manage');
|
return redirect()->refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue