Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makes sync schedule update/edit string available #13207

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,12 @@
promise
.then(() => {
this.goBack();
this.showSnackbarNotification('syncAdded');
if (this.currentTask) {
// the sync schedule has already been created and we are editing it
this.showSnackbarNotification('syncUpdated');
} else {
this.showSnackbarNotification('syncAdded');
}
})
.catch(() => {
this.createTaskFailedSnackbar();
Expand Down
4 changes: 4 additions & 0 deletions packages/kolibri/uiText/notificationStrings.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ export default createTranslator('NotificationStrings', {
message: 'Sync schedule added',
context: 'Snackbar message for adding the sync schedule',
},
syncUpdated: {
message: 'Sync schedule updated',
context: 'Snackbar message for updating the sync schedule',
},
deviceRemove: {
message: 'Device removed',
context: 'Snackbar message when a device is removed from the sync schedule',
Expand Down