commit: 1935bf6bd4fdef1336b8b709c38dba0ee8d7448f
parent 6816bc8badb34a41e41718b0d42e1021c974ff64
Author: Henry Jameson <me@hjkos.com>
Date: Mon, 8 May 2023 20:49:44 +0300
fix media upload bug
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/components/media_upload/media_upload.vue b/src/components/media_upload/media_upload.vue
@@ -1,8 +1,7 @@
<template>
- <component
- :is="normalButton ? 'button' : 'label'"
+ <button
class="media-upload"
- :class="{ disabled: disabled, ['media-upload button-default btn']: normalButton }"
+ :class="[normalButton ? 'button-default btn' : 'button-unstyled', { disabled }]"
:title="$t('tool_tip.media_upload')"
@click="onClick"
>
@@ -31,7 +30,7 @@
:accept="acceptTypes"
@change="change"
>
- </component>
+ </button>
</template>
<script src="./media_upload.js"></script>
diff --git a/src/i18n/en.json b/src/i18n/en.json
@@ -892,6 +892,8 @@
"is_default_custom": "(Default, version: {version})",
"install": "Install",
"install_version": "Install version {version}",
+ "more_install_options": "More install options",
+ "more_default_options": "More default setting options",
"set_default": "Set default",
"set_default_version": "Set version {version} as default",
"wip_notice": "Please note that this section is a WIP and lacks certain features as backend implementation of front-end management is incomplete.",