This commit is contained in:
2021-04-29 23:59:52 +00:00
parent 528020f113
commit 2ffd889bd7
7 changed files with 34 additions and 7 deletions

View File

@@ -287,6 +287,8 @@ todo: many biz objects are not using new PUT methodology
CURRENTLY DOING: front end full in
alert / popup notes

View File

@@ -0,0 +1,22 @@
<template>
<v-col v-if="alertMessage" cols="12" mt-1 mb-2>
<v-alert
ref="alertBox"
data-cy="alertbox"
v-show="alertMessage"
color="primary"
icon="$ayiInfoCircle"
class="multi-line"
outlined
>{{ alertMessage }}</v-alert
>
</v-col>
</template>
<script>
export default {
data: () => ({}),
props: {
alertMessage: { type: String, default: null }
}
};
</script>

View File

@@ -5,8 +5,7 @@
data-cy="generalerror"
v-show="errorBoxMessage"
color="error"
icon="$ayiExclamationCircle"
transition="scale-transition"
icon="$ayiExclamationTriangle"
class="multi-line"
outlined
>{{ errorBoxMessage }}</v-alert

View File

@@ -52,6 +52,7 @@ import urlControl from "./components/url-control.vue";
import roleControl from "./components/role-control.vue";
import durationControl from "./components/duration-control.vue";
import errorControl from "./components/error-control.vue";
import alertControl from "./components/alert-control.vue";
import extensionsControl from "./components/extensions-control.vue";
import reportSelectorControl from "./components/report-selector-control.vue";
import wikiControl from "./components/wiki-control.vue";
@@ -206,6 +207,7 @@ Vue.component("gz-url", urlControl);
Vue.component("gz-role-picker", roleControl);
Vue.component("gz-duration-picker", durationControl);
Vue.component("gz-error", errorControl);
Vue.component("gz-alert", alertControl);
Vue.component("gz-report-selector", reportSelectorControl);
Vue.component("gz-extensions", extensionsControl);
Vue.component("gz-wiki", wikiControl);

View File

@@ -354,8 +354,8 @@
data-cy="popUpNotes"
@input="fieldValueChanged('popUpNotes')"
auto-grow
prepend-icon="$ayiExclamationCircle"
color="accent"
prepend-icon="$ayiInfoCircle"
color="primary"
></v-textarea>
</v-col>

View File

@@ -3,6 +3,7 @@
<gz-report-selector ref="reportSelector"></gz-report-selector>
<div v-if="formState.ready">
<gz-error :error-box-message="formState.errorBoxMessage"></gz-error>
<gz-alert :alert-message="obj.alertViz"></gz-alert>
<v-form ref="form">
<GzWoHeader
v-model="obj"
@@ -153,7 +154,8 @@ export default {
items: [],
states: [],
isDirty: true,
isLockedAtServer: false
isLockedAtServer: false,
alertViz: null
},
formState: {
ready: false,

View File

@@ -234,8 +234,8 @@
data-cy="popUpNotes"
@input="fieldValueChanged('popUpNotes')"
auto-grow
prepend-icon="$ayiExclamationCircle"
color="accent"
prepend-icon="$ayiInfoCircle"
color="primary"
></v-textarea>
</v-col>