Skip to content

Commit ecb6740

Browse files
authored
Merge pull request #13207 from marcellamaki/add-sync-schedule-updated-string
Makes sync schedule update/edit string available
2 parents 7085027 + a95a8f1 commit ecb6740

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

packages/kolibri-common/components/SyncSchedule/EditDeviceSyncSchedule.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,12 @@
437437
promise
438438
.then(() => {
439439
this.goBack();
440-
this.showSnackbarNotification('syncAdded');
440+
if (this.currentTask) {
441+
// the sync schedule has already been created and we are editing it
442+
this.showSnackbarNotification('syncUpdated');
443+
} else {
444+
this.showSnackbarNotification('syncAdded');
445+
}
441446
})
442447
.catch(() => {
443448
this.createTaskFailedSnackbar();

packages/kolibri/uiText/notificationStrings.js

+4
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ export default createTranslator('NotificationStrings', {
131131
message: 'Sync schedule added',
132132
context: 'Snackbar message for adding the sync schedule',
133133
},
134+
syncUpdated: {
135+
message: 'Sync schedule updated',
136+
context: 'Snackbar message for updating the sync schedule',
137+
},
134138
deviceRemove: {
135139
message: 'Device removed',
136140
context: 'Snackbar message when a device is removed from the sync schedule',

0 commit comments

Comments
 (0)