Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/survey_client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-08-14 13:56:04 +0300
committerJoas Schilling <coding@schilljs.com>2017-08-14 13:56:04 +0300
commitd7930e954b94a74d59a93dbe0699fe7a1efe46ce (patch)
tree6c8db99c7aa8ce18dce86e224f9bdbfcfd0de21d /lib
parentc47227c54f2eff7bfd55c3841aa64e957535d3a0 (diff)
Improve notification with shorter subject and icon
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Notifier.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Notifier.php b/lib/Notifier.php
index 9685717..9712d76 100644
--- a/lib/Notifier.php
+++ b/lib/Notifier.php
@@ -60,9 +60,10 @@ class Notifier implements INotifier {
// Read the language from the notification
$l = $this->l10nFactory->get('survey_client', $languageCode);
- $notification->setParsedSubject((string) $l->t(
- 'Do you want to help us to improve Nextcloud by providing some anonymized data about your setup and usage? You can disable it at any time in the admin settings again.'))
- ->setLink($this->url->linkToRoute('settings.AdminSettings.index', ['section' => 'survey_client']));
+ $notification->setParsedSubject($l->t('Help improve Nextcloud'))
+ ->setParsedMessage($l->t('Do you want to help us to improve Nextcloud by providing some anonymized data about your setup and usage? You can disable it at any time in the admin settings again.'))
+ ->setLink($this->url->linkToRoute('settings.AdminSettings.index', ['section' => 'survey_client']))
+ ->setIcon($this->url->imagePath('survey_client', 'app-dark.svg'));
foreach ($notification->getActions() as $action) {
if ($action->getLabel() === 'disable') {