From 56a9c91e9012cd0e3ad9c118e3dd1aac2407db25 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 10 Aug 2020 19:01:37 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 8 ++------ ayanova/src/views/adm-global-logo.vue | 14 +++++++++++--- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 8353823d..a530ef4c 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -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? diff --git a/ayanova/src/views/adm-global-logo.vue b/ayanova/src/views/adm-global-logo.vue index 51ee4b1c..d0c9b9e9 100644 --- a/ayanova/src/views/adm-global-logo.vue +++ b/ayanova/src/views/adm-global-logo.vue @@ -12,8 +12,15 @@ v-model="uploadSmall" accept="image/*" show-size - label="Small logo" + :label="$ay.t('SmallLogo')" > + {{ $ay.t("Delete") }} {{ $ay.t("Upload") }} @@ -24,7 +31,7 @@ v-model="uploadMedium" accept="image/*" show-size - label="Medium logo" + :label="$ay.t('MediumLogo')" > {{ $ay.t("Upload") @@ -36,7 +43,7 @@ v-model="uploadLarge" accept="image/*" show-size - label="Large logo" + :label="$ay.t('LargeLogo')" > {{ $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;