This commit is contained in:
2019-11-12 19:40:56 +00:00
parent 7d9fe0d3b8
commit 5372800378
5 changed files with 30 additions and 8 deletions

View File

@@ -3,14 +3,14 @@
<v-alert :type="currentNotification.type" transition="scale-transition">
{{ currentNotification.message }}
</v-alert>
<!-- <v-btn icon @click="isVisible = false">
<v-icon color="white">fa-times-circle</v-icon>
</v-btn> -->
<v-btn text v-if="currentNotification.helpUrl" @click="helpClick()">
{{ this.$root.$gz.locale.get("More") }}
</v-btn>
</v-snackbar>
</template>
<script>
/* Xeslint-disable */
/* XXXeslint-disable */
const DEFAULT_NOTIFY_OPTIONS = { type: "info", timeout: 3000 };
export default {
@@ -21,7 +21,8 @@ export default {
currentNotification: {
type: "info", //one of success, info, warning, and error, see v-alert docs for more info
timeout: 3000,
message: null
message: null,
helpUrl: null
}
}),
methods: {
@@ -65,6 +66,9 @@ export default {
this.processing = false;
return;
}
},
helpClick() {
window.open(this.currentNotification.helpUrl, "_blank");
}
}
};