case 4222
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
color="primary"
|
||||
class="ml-md-2 mt-2 mt-md-1"
|
||||
data-cy="btnSeed"
|
||||
@click="seedDialog = !seedDialog"
|
||||
@click="showSeedDialog()"
|
||||
>{{ $ay.t("GenerateSampleData") }}</v-btn
|
||||
>
|
||||
</v-col>
|
||||
@@ -192,19 +192,22 @@ export default {
|
||||
supportLink() {
|
||||
return window.$gz.menu.contactSupportUrl();
|
||||
},
|
||||
async generate() {
|
||||
const vm = this;
|
||||
|
||||
showSeedDialog() {
|
||||
if (
|
||||
vm.formState.readOnly ||
|
||||
this.formState.readOnly ||
|
||||
window.$gz.store.getters.isSuperUser != true
|
||||
) {
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-warning",
|
||||
vm.$ay.t("ErrorSecurityAdministratorOnlyMessage")
|
||||
this.$ay.t("ErrorSecurityAdministratorOnlyMessage")
|
||||
);
|
||||
return;
|
||||
}
|
||||
this.seedDialog = !this.seedDialog;
|
||||
},
|
||||
async generate() {
|
||||
const vm = this;
|
||||
|
||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
||||
try {
|
||||
let dialogResult = await window.$gz.dialog.confirmGeneric(
|
||||
|
||||
Reference in New Issue
Block a user