Skip to content

Commit

Permalink
Merge pull request #12946 from rtibbles/dont_cross_the_streams
Browse files Browse the repository at this point in the history
Fix snackbar errors in content import
  • Loading branch information
nucleogenesis authored Dec 20, 2024
2 parents 03d0c50 + 74dcc1a commit e99a9bb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions kolibri/plugins/device/assets/src/views/taskNotificationMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,14 @@ const TaskSnackbarStrings = createTranslator('TaskSnackbarStrings', {
},
});

const { createSnackbar } = useSnackbar();

export default {
data() {
return {
showSnackbarWhenTaskHasFinished: true,
};
},
setup() {
const { createSnackbar } = useSnackbar();
return { createSnackbar };
},
computed: {
watchedTaskId() {
return this.$store.state.manageContent.watchedTaskId;
Expand Down Expand Up @@ -65,16 +63,16 @@ export default {
this.$router.push({ name: PageNames.MANAGE_TASKS });
},
createTaskFailedSnackbar() {
this.createSnackbar(TaskSnackbarStrings.$tr('taskFailed'));
createSnackbar(TaskSnackbarStrings.$tr('taskFailed'));
},
createTaskFinishedSnackbar() {
this.createSnackbar({
createSnackbar({
text: TaskSnackbarStrings.$tr('taskFinished'),
autoDismiss: true,
});
},
createTaskStartedSnackbar() {
this.createSnackbar({
createSnackbar({
text: TaskSnackbarStrings.$tr('taskStarted'),
autoDismiss: true,
});
Expand Down

0 comments on commit e99a9bb

Please sign in to comment.