Merge pull request #13467 from nextcloud/fix/noid/show-repair-steps-and-info-in-web

Show the repair steps and repair info output in the web for better feedback
This commit is contained in:
Roeland Jago Douma 2019-01-10 08:36:26 +01:00 committed by GitHub
commit c46f309f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -87,8 +87,10 @@ class FeedBackHandler {
$this->eventSource->send('success', (string)$this->l10n->t('[%d / %d]: %s', [$this->progressStateStep, $this->progressStateMax, $this->currentStep])); $this->eventSource->send('success', (string)$this->l10n->t('[%d / %d]: %s', [$this->progressStateStep, $this->progressStateMax, $this->currentStep]));
break; break;
case '\OC\Repair::step': case '\OC\Repair::step':
$this->eventSource->send('success', (string)$this->l10n->t('Repair step: ') . $event->getArgument(0));
break; break;
case '\OC\Repair::info': case '\OC\Repair::info':
$this->eventSource->send('success', (string)$this->l10n->t('Repair info: ') . $event->getArgument(0));
break; break;
case '\OC\Repair::warning': case '\OC\Repair::warning':
$this->eventSource->send('notice', (string)$this->l10n->t('Repair warning: ') . $event->getArgument(0)); $this->eventSource->send('notice', (string)$this->l10n->t('Repair warning: ') . $event->getArgument(0));