This commit is contained in:
2021-11-02 19:24:36 +00:00
parent efb8ce93e3
commit 3fae6b5913
2 changed files with 22 additions and 5 deletions

View File

@@ -5,7 +5,12 @@
</div> </div>
<template> <template>
<div class="mb-6 mb-sm-0"> <div class="mb-6 mb-sm-0">
<v-btn icon class="ml-n1 mr-2" @click="openDialog = true"> <v-btn
icon
class="ml-n1 mr-2"
@click="openDialog = true"
:data-cy="`${dataCy}:open`"
>
<v-icon>$ayiEdit</v-icon> <v-icon>$ayiEdit</v-icon>
</v-btn> </v-btn>
<span @click="openDialog = true">{{ displayServiceAddress }}</span> <span @click="openDialog = true">{{ displayServiceAddress }}</span>
@@ -310,9 +315,13 @@
<v-card-actions> <v-card-actions>
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-btn color="blue darken-1" text @click="close()">{{ <v-btn
$ay.t("OK") color="blue darken-1"
}}</v-btn> text
@click="close()"
:data-cy="`${dataCy}:btnok`"
>{{ $ay.t("OK") }}</v-btn
>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
</v-dialog> </v-dialog>
@@ -369,6 +378,7 @@ export default {
default: null, default: null,
type: Object type: Object
}, },
dataCy: { type: String, default: null },
formKey: { type: String, default: "" }, //used to grab template from store formKey: { type: String, default: "" }, //used to grab template from store
readonly: Boolean, readonly: Boolean,
disabled: Boolean disabled: Boolean

View File

@@ -4,7 +4,11 @@
<span class="text-caption">{{ $ay.t("WorkOrderStatus") }}</span> <span class="text-caption">{{ $ay.t("WorkOrderStatus") }}</span>
</div> </div>
<template> <template>
<div class="mb-6 mb-sm-0" @click="openDialog = true"> <div
class="mb-6 mb-sm-0"
@click="openDialog = true"
:data-cy="`${dataCy}:open`"
>
<v-btn icon class="ml-n1 mr-2"> <v-btn icon class="ml-n1 mr-2">
<v-icon>{{ openIcon() }}</v-icon> <v-icon>{{ openIcon() }}</v-icon>
</v-btn> </v-btn>
@@ -75,6 +79,7 @@
:label="$ay.t('NewStatus')" :label="$ay.t('NewStatus')"
prepend-icon="$ayiEdit" prepend-icon="$ayiEdit"
@click:prepend="handleEditStateClick()" @click:prepend="handleEditStateClick()"
:data-cy="`${dataCy}:picker`"
> >
<template v-slot:item="data"> <template v-slot:item="data">
<v-list-item-avatar> <v-list-item-avatar>
@@ -121,6 +126,7 @@
:disabled="selectedStatus == null" :disabled="selectedStatus == null"
text text
@click="save()" @click="save()"
:data-cy="`${dataCy}:btnok`"
>{{ $ay.t("OK") }}</v-btn >{{ $ay.t("OK") }}</v-btn
> >
</v-card-actions> </v-card-actions>
@@ -155,6 +161,7 @@ export default {
default: null, default: null,
type: Array type: Array
}, },
dataCy: { type: String, default: null },
formKey: { type: String, default: "" }, //used to grab template from store formKey: { type: String, default: "" }, //used to grab template from store
readonly: Boolean, readonly: Boolean,
disabled: Boolean disabled: Boolean