This commit is contained in:
2020-10-06 23:37:30 +00:00
parent 2fa3353cc9
commit 1b51dd814a
2 changed files with 40 additions and 20 deletions

View File

@@ -3,11 +3,6 @@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
todo: login page seems to fetch both logos even though only one is visible
change login page hasSMallLogo and hasMediumLogo to showSmallLogo and showMediumLogo
change check to not only include the check if the logo exists but also a check for current breakpoint
this way it can all be in the v-if and not in the class="hidden-md-and-up" check which in fact doesn't prevent the logo from downloading unnecessarily
todo: known issues has some efficiency settings for themes and good stuff to know, check it: https://github.com/vuetifyjs/vuetify/releases/tag/v2.3.0#user-content-known-issues todo: known issues has some efficiency settings for themes and good stuff to know, check it: https://github.com/vuetifyjs/vuetify/releases/tag/v2.3.0#user-content-known-issues
todo: new logos too small on large login, add a 3rd (large) size of logo to login form for xl size display todo: new logos too small on large login, add a 3rd (large) size of logo to login form for xl size display
todo: is notifynewcount request double sending? It seems like it appears twice at the same moment in the log todo: is notifynewcount request double sending? It seems like it appears twice at the same moment in the log

View File

@@ -7,7 +7,7 @@
<!-- Customer logo --> <!-- Customer logo -->
<v-col v-if="showCustomSmallLogo()" cols="12"> <v-col v-if="showCustomSmallLogo()" cols="12">
<div class="text-center"> <div class="text-center">
<img :src="smallLogoUrl" /> <img :src="mediumLogoUrl" />
</div> </div>
</v-col> </v-col>
@@ -17,8 +17,14 @@
</div> </div>
</v-col> </v-col>
<v-col v-if="showCustomLargeLogo()" cols="7">
<div class="text-center">
<img :src="largeLogoUrl" />
</div>
</v-col>
<!-- Small AyaNova logo --> <!-- Small AyaNova logo -->
<v-col cols="12" class="hidden-md-and-up" v-if="!hasSmallLogo"> <v-col cols="12" v-if="showSmallBrandLogo()">
<v-img <v-img
:src="require('../assets/logo.svg')" :src="require('../assets/logo.svg')"
contain contain
@@ -26,12 +32,7 @@
></v-img> ></v-img>
</v-col> </v-col>
<!-- Large AyaNova logo. --> <!-- Large AyaNova logo. -->
<v-col <v-col cols="12" md="7" v-if="showLargeBrandLogo()">
cols="12"
md="7"
class="hidden-sm-and-down"
v-if="!hasMediumLogo"
>
<v-img <v-img
:src="require('../assets/logo.svg')" :src="require('../assets/logo.svg')"
contain contain
@@ -132,11 +133,7 @@
</div> </div>
</a> </a>
</div> </div>
<div <div v-else style="text-align: center;" class="mx-auto pa-4 mb-1 mb-sm-1">
v-else
style="text-align: center;"
class="mx-auto pa-4 mb-1 mb-sm-1"
>
<a <a
href="https://ayanova.com" href="https://ayanova.com"
target="_blank" target="_blank"
@@ -173,6 +170,7 @@ export default {
hasLargeLogo: false, hasLargeLogo: false,
smallLogoUrl: null, smallLogoUrl: null,
mediumLogoUrl: null, mediumLogoUrl: null,
largeLogoUrl: null,
errorBadCreds: false, errorBadCreds: false,
reveal: false, reveal: false,
formState: { errorBoxMessage: null }, formState: { errorBoxMessage: null },
@@ -299,6 +297,7 @@ export default {
//debugger; //debugger;
vm.smallLogoUrl = window.$gz.api.logoUrl("small"); vm.smallLogoUrl = window.$gz.api.logoUrl("small");
vm.mediumLogoUrl = window.$gz.api.logoUrl("medium"); vm.mediumLogoUrl = window.$gz.api.logoUrl("medium");
vm.largeLogoUrl = window.$gz.api.logoUrl("large");
//------------------ //------------------
//Test ui feedback mechanisms here: //Test ui feedback mechanisms here:
//this.formState.errorBoxMessage = "This is a test crlf\r\nOnly a test lf\nEot"; //this.formState.errorBoxMessage = "This is a test crlf\r\nOnly a test lf\nEot";
@@ -345,13 +344,39 @@ export default {
}, },
methods: { methods: {
showFooterLogo() { showFooterLogo() {
return this.showCustomSmallLogo() || this.showCustomMediumLogo(); return (
this.showCustomSmallLogo() ||
this.showCustomMediumLogo() ||
this.showCustomLargeLogo()
);
},
showSmallBrandLogo() {
return !this.hasSmallLogo && this.$vuetify.breakpoint.smAndDown;
},
showLargeBrandLogo() {
if (this.showSmallBrandLogo()) {
return false;
}
if (this.showCustomSmallLogo()) {
return false;
}
if (this.showCustomMediumLogo()) {
return false;
}
if (this.showCustomLargeLogo()) {
return false;
}
return true;
}, },
showCustomSmallLogo() { showCustomSmallLogo() {
//https://vuetifyjs.com/en/features/breakpoints/#breakpoint-service
return this.hasSmallLogo && this.$vuetify.breakpoint.smAndDown; return this.hasSmallLogo && this.$vuetify.breakpoint.smAndDown;
}, },
showCustomMediumLogo() { showCustomMediumLogo() {
return this.hasMediumLogo && this.$vuetify.breakpoint.mdAndUp; return this.hasMediumLogo && this.$vuetify.breakpoint.mdOnly;
},
showCustomLargeLogo() {
return this.hasLargeLogo && this.$vuetify.breakpoint.lgAndUp;
}, },
trialUserSelected(item) { trialUserSelected(item) {
this.input.password = item.p; this.input.password = item.p;