This commit is contained in:
2020-06-19 13:53:08 +00:00
parent d3bb3bfb8e
commit 527c84a81e
3 changed files with 16 additions and 3 deletions

View File

@@ -6,10 +6,11 @@ WIFI change 5g channel to 52,56,60 and 2g channel to 8
recheck before doing as it seems to vary, maybe someone else's is auto switching
todo: server error red box messages have \r\n characters in them
todo: server error "red box" messages have \r\n characters in them
set html directly instead of just inserting text?
see gzdialog stuff just done for implementing
todo: Auth is directly fetching, re-route through gzapi instead
todo: remove all use of .then() as it's being used incorrectly

View File

@@ -4,10 +4,12 @@
:data-cy="!!$ay.dev ? 'gznotify' : false"
:value="isVisible"
:color="currentNotification.type"
multi-line
>
<v-alert :type="currentNotification.type" mode="out-in">
{{ currentNotification.message }}
</v-alert>
<v-btn
:data-cy="!!$ay.dev ? 'gznotify:morebutton' : false"
text
@@ -41,6 +43,7 @@ export default {
if (!options.message) {
return;
}
if (!options.type) {
options.type = DEFAULT_NOTIFY_OPTIONS.type;
}

View File

@@ -217,16 +217,25 @@ export default {
},
created() {
let vm = this;
//------------------
//Test ui feedback mechanisms here:
//this.formState.errorBoxMessage = "This is a test crlf\r\nOnly a test lf\nEot";
// (async function() {
// await window.$gz.dialog.displayLTModalNotificationMessage(
// "MaintenanceExpiredNote",
// "MaintenanceExpired",
// "This is a test crlf\r\nOnly a test lf\nEot",
// "Testing",
// "error",
// "https://www.ayanova.com/subscriptionexpired.htm"
// );
// })();
// window.$gz.eventBus.$emit(
// "notify-info",
// "This is a test crlf\r\nOnly a test lf\nEot",
// "https://www.ayanova.com/subscriptionexpired.htm"
// );
//------------------------
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "",