This commit is contained in:
@@ -287,6 +287,8 @@ todo: many biz objects are not using new PUT methodology
|
|||||||
|
|
||||||
|
|
||||||
CURRENTLY DOING: front end full in
|
CURRENTLY DOING: front end full in
|
||||||
|
alert / popup notes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
22
ayanova/src/components/alert-control.vue
Normal file
22
ayanova/src/components/alert-control.vue
Normal 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>
|
||||||
@@ -5,8 +5,7 @@
|
|||||||
data-cy="generalerror"
|
data-cy="generalerror"
|
||||||
v-show="errorBoxMessage"
|
v-show="errorBoxMessage"
|
||||||
color="error"
|
color="error"
|
||||||
icon="$ayiExclamationCircle"
|
icon="$ayiExclamationTriangle"
|
||||||
transition="scale-transition"
|
|
||||||
class="multi-line"
|
class="multi-line"
|
||||||
outlined
|
outlined
|
||||||
>{{ errorBoxMessage }}</v-alert
|
>{{ errorBoxMessage }}</v-alert
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ import urlControl from "./components/url-control.vue";
|
|||||||
import roleControl from "./components/role-control.vue";
|
import roleControl from "./components/role-control.vue";
|
||||||
import durationControl from "./components/duration-control.vue";
|
import durationControl from "./components/duration-control.vue";
|
||||||
import errorControl from "./components/error-control.vue";
|
import errorControl from "./components/error-control.vue";
|
||||||
|
import alertControl from "./components/alert-control.vue";
|
||||||
import extensionsControl from "./components/extensions-control.vue";
|
import extensionsControl from "./components/extensions-control.vue";
|
||||||
import reportSelectorControl from "./components/report-selector-control.vue";
|
import reportSelectorControl from "./components/report-selector-control.vue";
|
||||||
import wikiControl from "./components/wiki-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-role-picker", roleControl);
|
||||||
Vue.component("gz-duration-picker", durationControl);
|
Vue.component("gz-duration-picker", durationControl);
|
||||||
Vue.component("gz-error", errorControl);
|
Vue.component("gz-error", errorControl);
|
||||||
|
Vue.component("gz-alert", alertControl);
|
||||||
Vue.component("gz-report-selector", reportSelectorControl);
|
Vue.component("gz-report-selector", reportSelectorControl);
|
||||||
Vue.component("gz-extensions", extensionsControl);
|
Vue.component("gz-extensions", extensionsControl);
|
||||||
Vue.component("gz-wiki", wikiControl);
|
Vue.component("gz-wiki", wikiControl);
|
||||||
|
|||||||
@@ -354,8 +354,8 @@
|
|||||||
data-cy="popUpNotes"
|
data-cy="popUpNotes"
|
||||||
@input="fieldValueChanged('popUpNotes')"
|
@input="fieldValueChanged('popUpNotes')"
|
||||||
auto-grow
|
auto-grow
|
||||||
prepend-icon="$ayiExclamationCircle"
|
prepend-icon="$ayiInfoCircle"
|
||||||
color="accent"
|
color="primary"
|
||||||
></v-textarea>
|
></v-textarea>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<gz-report-selector ref="reportSelector"></gz-report-selector>
|
<gz-report-selector ref="reportSelector"></gz-report-selector>
|
||||||
<div v-if="formState.ready">
|
<div v-if="formState.ready">
|
||||||
<gz-error :error-box-message="formState.errorBoxMessage"></gz-error>
|
<gz-error :error-box-message="formState.errorBoxMessage"></gz-error>
|
||||||
|
<gz-alert :alert-message="obj.alertViz"></gz-alert>
|
||||||
<v-form ref="form">
|
<v-form ref="form">
|
||||||
<GzWoHeader
|
<GzWoHeader
|
||||||
v-model="obj"
|
v-model="obj"
|
||||||
@@ -153,7 +154,8 @@ export default {
|
|||||||
items: [],
|
items: [],
|
||||||
states: [],
|
states: [],
|
||||||
isDirty: true,
|
isDirty: true,
|
||||||
isLockedAtServer: false
|
isLockedAtServer: false,
|
||||||
|
alertViz: null
|
||||||
},
|
},
|
||||||
formState: {
|
formState: {
|
||||||
ready: false,
|
ready: false,
|
||||||
|
|||||||
@@ -234,8 +234,8 @@
|
|||||||
data-cy="popUpNotes"
|
data-cy="popUpNotes"
|
||||||
@input="fieldValueChanged('popUpNotes')"
|
@input="fieldValueChanged('popUpNotes')"
|
||||||
auto-grow
|
auto-grow
|
||||||
prepend-icon="$ayiExclamationCircle"
|
prepend-icon="$ayiInfoCircle"
|
||||||
color="accent"
|
color="primary"
|
||||||
></v-textarea>
|
></v-textarea>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user