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 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? set html directly instead of just inserting text?
see gzdialog stuff just done for implementing see gzdialog stuff just done for implementing
todo: Auth is directly fetching, re-route through gzapi instead todo: Auth is directly fetching, re-route through gzapi instead
todo: remove all use of .then() as it's being used incorrectly todo: remove all use of .then() as it's being used incorrectly

View File

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

View File

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