This commit is contained in:
2020-04-01 18:48:38 +00:00
parent bd7d43f462
commit 810e060fed
4 changed files with 25 additions and 9 deletions

View File

@@ -27,6 +27,7 @@
v-model="isVisible"
:max-width="options.width"
@keydown.esc="cancel"
data-cy="gzconfirm"
>
<v-card elevation="24">
<v-card-title class="headline lighten-2" primary-title>
@@ -46,11 +47,16 @@
color="primary darken-1"
text
@click.native="cancel"
data-cy="gzconfirm:nobutton"
>{{ options.noButtonText }}</v-btn
>
<v-btn color="primary darken-1" text @click.native="agree">{{
options.yesButtonText
}}</v-btn>
<v-btn
color="primary darken-1"
text
@click.native="agree"
data-cy="gzconfirm:yesbutton"
>{{ options.yesButtonText }}</v-btn
>
</v-card-actions>
</v-card>
</v-dialog>

View File

@@ -1,10 +1,19 @@
<template>
<!-- <v-scale-transition> -->
<v-snackbar :value="isVisible" :color="currentNotification.type">
<v-snackbar
data-cy="gznotify"
: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()">
<v-btn
data-cy="gznotify:morebutton"
text
v-if="currentNotification.helpUrl"
@click="helpClick()"
>
{{ this.$root.$gz.translation.get("More") }}
</v-btn>
</v-snackbar>