From 21c74843969be7e4c05a19d92bd4775cd5a7b5bc Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 25 Apr 2019 12:04:16 +0200 Subject: [PATCH] notify admin about notifications sent --- app/assets/javascripts/controllers/admin/settings.js.erb | 5 +++-- config/locales/app.admin.en.yml | 1 + config/locales/app.admin.es.yml | 1 + config/locales/app.admin.fr.yml | 1 + config/locales/app.admin.pt.yml | 1 + 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/controllers/admin/settings.js.erb b/app/assets/javascripts/controllers/admin/settings.js.erb index 6dd919469..9be82acea 100644 --- a/app/assets/javascripts/controllers/admin/settings.js.erb +++ b/app/assets/javascripts/controllers/admin/settings.js.erb @@ -330,8 +330,8 @@ Application.Controllers.controller('SettingsController', ['$scope', '$filter', ' /** * Controller used in the invoice refunding modal window */ -Application.Controllers.controller('SavePolicyController', ['$scope', '$uibModalInstance', 'saveCb', 'privacyPolicy', - function ($scope, $uibModalInstance, saveCb, privacyPolicy) { +Application.Controllers.controller('SavePolicyController', ['$scope', '$uibModalInstance', '_t', 'growl', 'saveCb', 'privacyPolicy', + function ($scope, $uibModalInstance, _t, growl, saveCb, privacyPolicy) { /* PUBLIC SCOPE */ /** @@ -347,6 +347,7 @@ Application.Controllers.controller('SavePolicyController', ['$scope', '$uibModal */ $scope.publish = function () { saveCb({ name: 'privacy_body', value: privacyPolicy.bodyTemp }); + growl.info(_t('settings.privacy.users_notified')); $uibModalInstance.close('privacy_body'); }; /** diff --git a/config/locales/app.admin.en.yml b/config/locales/app.admin.en.yml index 7477aa085..820adaaf6 100644 --- a/config/locales/app.admin.en.yml +++ b/config/locales/app.admin.en.yml @@ -724,6 +724,7 @@ en: save_or_publish_body: "Do you want to publish a new version of the privacy policy or save it as a draft?" publish_will_notify: "Publish a new version will send a notification to every users." publish: "Publish" + users_notified: "Platform users will be notified of the update." open_api_clients: add_new_client: "Create new API client" diff --git a/config/locales/app.admin.es.yml b/config/locales/app.admin.es.yml index 951b24611..48cab130d 100644 --- a/config/locales/app.admin.es.yml +++ b/config/locales/app.admin.es.yml @@ -724,6 +724,7 @@ es: save_or_publish_body: "Do you want to publish a new version of the privacy policy or save it as a draft?" # translation_missing publish_will_notify: "Publish a new version will send a notification to every users." # translation_missing publish: "Publish" # translation_missing + users_notified: "Platform users will be notified of the update." # translation_missing open_api_clients: add_new_client: "Crear un nuevo cliente de API" diff --git a/config/locales/app.admin.fr.yml b/config/locales/app.admin.fr.yml index be9f4b49e..1637f0c4d 100644 --- a/config/locales/app.admin.fr.yml +++ b/config/locales/app.admin.fr.yml @@ -724,6 +724,7 @@ fr: save_or_publish_body: "Voulez-vous publier une nouvelle version de la politique de confidentialité ou bien l'enregistrer comme brouillon ?" publish_will_notify: "Publier une nouvelle version enverra une notification à l'ensemble des utilisateurs." publish: "Publier" + users_notified: "Les utilisateurs de la plateforme seront notifiés de la mise à jour." open_api_clients: add_new_client: "Créer un compte client" diff --git a/config/locales/app.admin.pt.yml b/config/locales/app.admin.pt.yml index be40e72b8..40a8ddabe 100755 --- a/config/locales/app.admin.pt.yml +++ b/config/locales/app.admin.pt.yml @@ -724,6 +724,7 @@ pt: save_or_publish_body: "Do you want to publish a new version of the privacy policy or save it as a draft?" # translation_missing publish_will_notify: "Publish a new version will send a notification to every users." # translation_missing publish: "Publish" # translation_missing + users_notified: "Platform users will be notified of the update." # translation_missing open_api_clients: add_new_client: "Criar novo cliente de API"