This commit is contained in:
2020-08-10 21:44:52 +00:00
parent c3364d2588
commit 85f5008f47
3 changed files with 18 additions and 6 deletions

View File

@@ -8,6 +8,8 @@ todo: Logo form
Decide upon reasonable maximum sizes for each
(check RI/WBI etc manual what do they take for limits?)
WBI: "It is recommended that your banner image be nor more than 300 pixels by 100 pixels"
RI: "1. Create a png format image file, with dimensions no wider than 300 pixels and no higher than 100 pixel. "

View File

@@ -59,7 +59,7 @@
:label="$ay.t('LargeLogo')"
:rules="rules"
></v-file-input>
<v-btn color="primary" text @click="remove('small')">{{
<v-btn color="primary" text @click="remove('large')">{{
$ay.t("Delete")
}}</v-btn>
<v-btn color="primary" text @click="upload('large')">{{

View File

@@ -4,11 +4,15 @@
<form>
<v-row>
<!-- Customer logo -->
<v-col cols="12" class="hidden-md-and-up">
<img :src="smallLogoUrl" />
<v-col v-if="hasSmallLogo" cols="12" class="hidden-md-and-up">
<div class="text-center">
<img :src="smallLogoUrl" />
</div>
</v-col>
<v-col cols="12" md="7" class="hidden-sm-and-down">
<img :src="mediumLogoUrl" />
<v-col v-if="hasMediumLogo" cols="7" class="hidden-sm-and-down">
<div class="text-center">
<img :src="mediumLogoUrl" />
</div>
</v-col>
<!-- Our branding -->
@@ -103,6 +107,9 @@ export default {
username: "superuser",
password: "l3tm3in"
},
hasSmallLogo: false,
hasMediumLogo: false,
hasLargeLogo: false,
smallLogoUrl: null,
mediumLogoUrl: null,
errorBadCreds: false,
@@ -257,7 +264,10 @@ export default {
try {
let res = await window.$gz.api.get("notify/hello");
if (res.data != null) {
vm.showEvalUsers = res.data;
vm.showEvalUsers = res.data.eval;
vm.hasSmallLogo = res.data.sl;
vm.hasMediumLogo = res.data.ml;
vm.hasLargeLogo = res.data.ll;
}
} catch (error) {
//squash it, this isn't critical