From f67cd6a463967d13dc38422c072a9228c3836b99 Mon Sep 17 00:00:00 2001 From: Simon Le Marchant Date: Mon, 17 Oct 2022 10:12:28 -0400 Subject: [PATCH] Merged in the internal labels for PNG only file inputs. Resolves #4. --- src/components/Control.vue | 2 ++ src/views/Preview.vue | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Control.vue b/src/components/Control.vue index 1ff2e3c..853b78d 100644 --- a/src/components/Control.vue +++ b/src/components/Control.vue @@ -56,6 +56,8 @@ prepend-icon="mdi-file-upload" showsize @change="copyAsset" + label="Upload a PNG" + :messages="['Only PNG images are currently supported.']" > diff --git a/src/views/Preview.vue b/src/views/Preview.vue index d9d13a4..28acf80 100644 --- a/src/views/Preview.vue +++ b/src/views/Preview.vue @@ -268,11 +268,12 @@ accept=".png" :clearable="false" prepend-icon="" - label="Click to upload..." + label="Upload a PNG..." @change="updateThumbnailAsset" outlined dense class="card-img-input" + :messages="['Only PNG images are currently supported.']" >