This commit is contained in:
@@ -4,14 +4,10 @@ PRIORITY - ALWAYS Lowest level stuff first, i.e. TODO at server, api route chang
|
||||
=-=-=-=-
|
||||
|
||||
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
|
||||
clear image (remove it)
|
||||
refresh image after upload (make source dynamic and append nonsense or toggle url?)
|
||||
|
||||
Decide upon reasonable maximum sizes for each
|
||||
(check RI/WBI etc manual what do they take for limits?)
|
||||
Can it send a placeholder if empty instead of a 404?
|
||||
|
||||
@@ -12,8 +12,15 @@
|
||||
v-model="uploadSmall"
|
||||
accept="image/*"
|
||||
show-size
|
||||
label="Small logo"
|
||||
:label="$ay.t('SmallLogo')"
|
||||
></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')">{{
|
||||
$ay.t("Upload")
|
||||
}}</v-btn>
|
||||
@@ -24,7 +31,7 @@
|
||||
v-model="uploadMedium"
|
||||
accept="image/*"
|
||||
show-size
|
||||
label="Medium logo"
|
||||
:label="$ay.t('MediumLogo')"
|
||||
></v-file-input>
|
||||
<v-btn color="primary" text @click="upload('medium')">{{
|
||||
$ay.t("Upload")
|
||||
@@ -36,7 +43,7 @@
|
||||
v-model="uploadLarge"
|
||||
accept="image/*"
|
||||
show-size
|
||||
label="Large logo"
|
||||
:label="$ay.t('LargeLogo')"
|
||||
></v-file-input>
|
||||
<v-btn color="primary" text @click="upload('large')">{{
|
||||
$ay.t("Upload")
|
||||
@@ -105,6 +112,7 @@ export default {
|
||||
imageUrl(size) {
|
||||
return window.$gz.api.logoUrl(size);
|
||||
},
|
||||
async deleteImage(size) {},
|
||||
async upload(size) {
|
||||
//similar code in wiki-control
|
||||
let vm = this;
|
||||
|
||||
Reference in New Issue
Block a user