This commit is contained in:
@@ -8,6 +8,8 @@ todo: Logo form
|
|||||||
|
|
||||||
Decide upon reasonable maximum sizes for each
|
Decide upon reasonable maximum sizes for each
|
||||||
(check RI/WBI etc manual what do they take for limits?)
|
(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. "
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
:label="$ay.t('LargeLogo')"
|
:label="$ay.t('LargeLogo')"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
></v-file-input>
|
></v-file-input>
|
||||||
<v-btn color="primary" text @click="remove('small')">{{
|
<v-btn color="primary" text @click="remove('large')">{{
|
||||||
$ay.t("Delete")
|
$ay.t("Delete")
|
||||||
}}</v-btn>
|
}}</v-btn>
|
||||||
<v-btn color="primary" text @click="upload('large')">{{
|
<v-btn color="primary" text @click="upload('large')">{{
|
||||||
|
|||||||
@@ -4,11 +4,15 @@
|
|||||||
<form>
|
<form>
|
||||||
<v-row>
|
<v-row>
|
||||||
<!-- Customer logo -->
|
<!-- Customer logo -->
|
||||||
<v-col cols="12" class="hidden-md-and-up">
|
<v-col v-if="hasSmallLogo" cols="12" class="hidden-md-and-up">
|
||||||
<img :src="smallLogoUrl" />
|
<div class="text-center">
|
||||||
|
<img :src="smallLogoUrl" />
|
||||||
|
</div>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" md="7" class="hidden-sm-and-down">
|
<v-col v-if="hasMediumLogo" cols="7" class="hidden-sm-and-down">
|
||||||
<img :src="mediumLogoUrl" />
|
<div class="text-center">
|
||||||
|
<img :src="mediumLogoUrl" />
|
||||||
|
</div>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<!-- Our branding -->
|
<!-- Our branding -->
|
||||||
@@ -103,6 +107,9 @@ export default {
|
|||||||
username: "superuser",
|
username: "superuser",
|
||||||
password: "l3tm3in"
|
password: "l3tm3in"
|
||||||
},
|
},
|
||||||
|
hasSmallLogo: false,
|
||||||
|
hasMediumLogo: false,
|
||||||
|
hasLargeLogo: false,
|
||||||
smallLogoUrl: null,
|
smallLogoUrl: null,
|
||||||
mediumLogoUrl: null,
|
mediumLogoUrl: null,
|
||||||
errorBadCreds: false,
|
errorBadCreds: false,
|
||||||
@@ -257,7 +264,10 @@ export default {
|
|||||||
try {
|
try {
|
||||||
let res = await window.$gz.api.get("notify/hello");
|
let res = await window.$gz.api.get("notify/hello");
|
||||||
if (res.data != null) {
|
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) {
|
} catch (error) {
|
||||||
//squash it, this isn't critical
|
//squash it, this isn't critical
|
||||||
|
|||||||
Reference in New Issue
Block a user