Skip to content

Commit

Permalink
feat: added v-auto-animate to alert box
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Sep 11, 2022
1 parent 861f068 commit dfecce0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/apps/ui/pages/dashboard/settings/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ async function deleteAllDataOfAUser() {
deleteAllDataOfAUserLoading.value = false;
clearAndDismissModal('delete-all-data-of-a-user');
alert.type = 'success';
alert.msg = 'All user training data has been deleted!';
} catch (e) {
clearAndDismissModal('delete-all-data-of-a-user');
deleteAllDataOfAUserLoading.value = false;
Expand Down Expand Up @@ -94,7 +97,7 @@ async function clearAllCache() {

<!-- settings -->
<div class="container px-3 animate__animated animate__fadeIn animate__faster">
<div class="flex flex-column justify-content-between my-3">
<div class="flex flex-column justify-content-between my-3" v-auto-animate>
<!-- alert -->
<div v-if="alert.type" :class="`alert-${alert.type}`" class="alert">
<span>{{ alert.msg }}</span>
Expand Down

0 comments on commit dfecce0

Please sign in to comment.