1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

notify admin about notifications sent

This commit is contained in:
Sylvain 2019-04-25 12:04:16 +02:00
parent 8369e2e78e
commit 21c7484396
5 changed files with 7 additions and 2 deletions

View File

@ -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');
};
/**

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"