fix media upload bug

This commit is contained in:
Henry Jameson 2023-05-08 20:49:44 +03:00
parent 6816bc8bad
commit 1935bf6bd4
2 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,7 @@
<template> <template>
<component <button
:is="normalButton ? 'button' : 'label'"
class="media-upload" 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')" :title="$t('tool_tip.media_upload')"
@click="onClick" @click="onClick"
> >
@ -31,7 +30,7 @@
:accept="acceptTypes" :accept="acceptTypes"
@change="change" @change="change"
> >
</component> </button>
</template> </template>
<script src="./media_upload.js"></script> <script src="./media_upload.js"></script>

View File

@ -892,6 +892,8 @@
"is_default_custom": "(Default, version: {version})", "is_default_custom": "(Default, version: {version})",
"install": "Install", "install": "Install",
"install_version": "Install version {version}", "install_version": "Install version {version}",
"more_install_options": "More install options",
"more_default_options": "More default setting options",
"set_default": "Set default", "set_default": "Set default",
"set_default_version": "Set version {version} as 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.", "wip_notice": "Please note that this section is a WIP and lacks certain features as backend implementation of front-end management is incomplete.",