This commit is contained in:
2019-11-12 20:53:54 +00:00
parent 5372800378
commit 9fabd82715
4 changed files with 61 additions and 10 deletions

View File

@@ -1,12 +1,14 @@
<template>
<v-snackbar dismissable :value="isVisible" :color="currentNotification.type">
<v-alert :type="currentNotification.type" transition="scale-transition">
<!-- <v-scale-transition> -->
<v-snackbar :value="isVisible" :color="currentNotification.type">
<v-alert :type="currentNotification.type" mode="out-in">
{{ currentNotification.message }}
</v-alert>
<v-btn text v-if="currentNotification.helpUrl" @click="helpClick()">
{{ this.$root.$gz.locale.get("More") }}
</v-btn>
</v-snackbar>
<!-- </v-scale-transition> -->
</template>
<script>
@@ -54,6 +56,13 @@ export default {
//If don't use nextTick then don't get all visible when multiple in sequence
this.$nextTick(() => {
this.isVisible = true;
// eslint-disable-next-line no-console
console.log(
this.currentNotification.timeout +
" (" +
this.currentNotification.message +
")"
);
});
//Show it for the designated time before moving on to the next