Skip to content

Commit

Permalink
(js) Rename buttons of alarm toast
Browse files Browse the repository at this point in the history
Fixes #3945
  • Loading branch information
cgx committed Dec 14, 2016
1 parent 5591b9d commit e010808
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -6,6 +6,7 @@ New features

Enhancements
- [web] prevent using localhost on additional IMAP accounts
- [web] renamed buttons of alarm toast (#3945)

Bug fixes
- [web] fixed confusion between owner and active user in ACLs management of Administration module
Expand Down
17 changes: 9 additions & 8 deletions UI/Common/English.lproj/Localizable.strings
Expand Up @@ -69,14 +69,6 @@
"delegate is organizer" = "The delegate is the organizer. Please specify a different delegate.";
"delegate is a participant" = "The delegate is already a participant.";
"delegate is a group" = "The specified address corresponds to a group. You can only delegate to a unique person.";
"Snooze for " = "Snooze for ";
"5 minutes" = "5 minutes";
"10 minutes" = "10 minutes";
"15 minutes" = "15 minutes";
"30 minutes" = "30 minutes";
"45 minutes" = "45 minutes";
"1 hour" = "1 hour";
"1 day" = "1 day";

/* common buttons */
"OK" = "OK";
Expand All @@ -89,6 +81,15 @@
"Start" = "Start";
"Due Date" = "Due Date";
"Location" = "Location";
"Snooze" = "Snooze";
"Snooze for " = "Snooze for ";
"5 minutes" = "5 minutes";
"10 minutes" = "10 minutes";
"15 minutes" = "15 minutes";
"30 minutes" = "30 minutes";
"45 minutes" = "45 minutes";
"1 hour" = "1 hour";
"1 day" = "1 day";

/* mail labels */
"Important" = "Important";
Expand Down
12 changes: 6 additions & 6 deletions UI/WebServerResources/js/Common/Alarm.service.js
Expand Up @@ -94,11 +94,11 @@
' </md-option>',
' </md-select>',
' </md-input-container>',
' <md-button ng-click="cancel()">',
l('Cancel'),
' <md-button ng-click="snooze()">',
l('Snooze'),
' </md-button>',
' <md-button ng-click="ok()">',
l('Ok'),
' <md-button ng-click="close()">',
l('Close'),
' </md-button>',
' </div>',
' </div>',
Expand All @@ -118,10 +118,10 @@
function AlarmController(scope, $mdToast, url) {
scope.summary = data.summary;
scope.reminder = '10';
scope.cancel = function() {
scope.close = function() {
$mdToast.hide();
};
scope.ok = function() {
scope.snooze = function() {
_this.$$resource.fetch(url, 'view?snoozeAlarm=' + scope.reminder);
$mdToast.hide();
};
Expand Down

0 comments on commit e010808

Please sign in to comment.