mirror of
https://github.com/nextcloud/server.git
synced 2024-08-05 20:16:00 +02:00
Send feedback from upgrading apps to the upgrade ui
This commit is contained in:
parent
776cc45a5a
commit
3184983565
@ -18,6 +18,12 @@ if (OC::checkUpgrade(false)) {
|
|||||||
$updater->listen('\OC\Updater', 'dbSimulateUpgrade', function () use ($eventSource, $l) {
|
$updater->listen('\OC\Updater', 'dbSimulateUpgrade', function () use ($eventSource, $l) {
|
||||||
$eventSource->send('success', (string)$l->t('Checked database schema update'));
|
$eventSource->send('success', (string)$l->t('Checked database schema update'));
|
||||||
});
|
});
|
||||||
|
$updater->listen('\OC\Updater', 'appUpgradeCheck', function () use ($eventSource, $l) {
|
||||||
|
$eventSource->send('success', (string)$l->t('Checked database schema update for apps'));
|
||||||
|
});
|
||||||
|
$updater->listen('\OC\Updater', 'appUpgrade', function ($app, $version) use ($eventSource, $l) {
|
||||||
|
$eventSource->send('success', (string)$l->t('Updated "%s" to %s', array($app, $version)));
|
||||||
|
});
|
||||||
$updater->listen('\OC\Updater', 'disabledApps', function ($appList) use ($eventSource, $l) {
|
$updater->listen('\OC\Updater', 'disabledApps', function ($appList) use ($eventSource, $l) {
|
||||||
$list = array();
|
$list = array();
|
||||||
foreach ($appList as $appId) {
|
foreach ($appList as $appId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user