✨ Removed pow, alertModal and fixed storage
This commit is contained in:
@@ -35,17 +35,19 @@
|
||||
if (res.status === 200) {
|
||||
window.location.href = '/dashboard';
|
||||
} else if (res.status === 400) {
|
||||
alertModal.set({
|
||||
/* alertModal.set({
|
||||
open: true,
|
||||
title: 'Import failed',
|
||||
body: "This quiz isn't (yet) supported!"
|
||||
});
|
||||
});*/
|
||||
alert("This quiz isn't (yet) supported!");
|
||||
} else {
|
||||
alertModal.set({
|
||||
/* alertModal.set({
|
||||
open: true,
|
||||
title: 'Import failed',
|
||||
body: 'Unknown error while importing the quiz!'
|
||||
});
|
||||
});*/
|
||||
alert('Import failed with unknown reason');
|
||||
}
|
||||
is_loading = false;
|
||||
};
|
||||
@@ -61,11 +63,12 @@
|
||||
if (res.status === 200) {
|
||||
window.location.href = '/dashboard';
|
||||
} else {
|
||||
alertModal.set({
|
||||
/* alertModal.set({
|
||||
open: true,
|
||||
title: 'Import failed',
|
||||
body: 'Something went wrong!'
|
||||
});
|
||||
});*/
|
||||
alert('Something went wrong!');
|
||||
}
|
||||
is_loading = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user