This commit is contained in:
2020-08-10 19:01:37 +00:00
parent fff19e390a
commit 56a9c91e90
2 changed files with 13 additions and 9 deletions

View File

@@ -4,14 +4,10 @@ PRIORITY - ALWAYS Lowest level stuff first, i.e. TODO at server, api route chang
=-=-=-=- =-=-=-=-
todo: Logo form todo: Logo form
Image should show exacty wysiwyg style so user knows how it will look and right now it doesn't do that:
Image size in v-img is always zoomed too much
https://github.com/vuetifyjs/vuetify/issues/10219
Set max width to actual image width and dimensions?
or ditch v-img and just use img tag instead (it won't fuck with the image size)
translations translations
clear image (remove it) clear image (remove it)
refresh image after upload (make source dynamic and append nonsense or toggle url?)
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?)
Can it send a placeholder if empty instead of a 404? Can it send a placeholder if empty instead of a 404?

View File

@@ -12,8 +12,15 @@
v-model="uploadSmall" v-model="uploadSmall"
accept="image/*" accept="image/*"
show-size show-size
label="Small logo" :label="$ay.t('SmallLogo')"
></v-file-input> ></v-file-input>
<v-btn
v-if="smallUrl"
color="primary"
text
@click="deleteImage('small')"
>{{ $ay.t("Delete") }}</v-btn
>
<v-btn color="primary" text @click="upload('small')">{{ <v-btn color="primary" text @click="upload('small')">{{
$ay.t("Upload") $ay.t("Upload")
}}</v-btn> }}</v-btn>
@@ -24,7 +31,7 @@
v-model="uploadMedium" v-model="uploadMedium"
accept="image/*" accept="image/*"
show-size show-size
label="Medium logo" :label="$ay.t('MediumLogo')"
></v-file-input> ></v-file-input>
<v-btn color="primary" text @click="upload('medium')">{{ <v-btn color="primary" text @click="upload('medium')">{{
$ay.t("Upload") $ay.t("Upload")
@@ -36,7 +43,7 @@
v-model="uploadLarge" v-model="uploadLarge"
accept="image/*" accept="image/*"
show-size show-size
label="Large logo" :label="$ay.t('LargeLogo')"
></v-file-input> ></v-file-input>
<v-btn color="primary" text @click="upload('large')">{{ <v-btn color="primary" text @click="upload('large')">{{
$ay.t("Upload") $ay.t("Upload")
@@ -105,6 +112,7 @@ export default {
imageUrl(size) { imageUrl(size) {
return window.$gz.api.logoUrl(size); return window.$gz.api.logoUrl(size);
}, },
async deleteImage(size) {},
async upload(size) { async upload(size) {
//similar code in wiki-control //similar code in wiki-control
let vm = this; let vm = this;