CLASSROOMIO-T-3: Mobile improvments

This commit is contained in:
rotimi-best
2021-09-17 07:48:26 +03:00
parent 2edfee4990
commit 984a3d5e07
5 changed files with 41 additions and 35 deletions
+4 -1
View File
@@ -24,6 +24,7 @@
} from '../../../utils/services/submissions';
import { formatAnswers } from '../../../components/Course/function';
import { snackbarStore } from '../../../components/Snackbar/store';
import { SNACKBAR_SEVERITY } from '../../../components/Snackbar/constants';
const flipDurationMs = 300;
@@ -168,9 +169,11 @@
{ returning: 'minimal' }
).then((res) => console.log('Updated submission', res));
await Promise.all(updates);
$snackbarStore.open = true;
$snackbarStore.message = `Saved successfully`;
$snackbarStore.severity = SNACKBAR_SEVERITY.SUCCESS;
await Promise.all(updates);
}
onMount(async () => {