Restore is-black class on the Prefill with QR code button

This commit is contained in:
Bubka 2023-11-22 13:37:08 +01:00
parent e5f0dab0f5
commit fd8606aa4b

View File

@ -425,7 +425,8 @@
<!-- qcode fileupload -->
<div v-if="!isEditMode" class="field is-grouped">
<div class="control">
<div role="button" tabindex="0" class="file is-small" @keyup.enter="qrcodeInputLabel.click()">
<UseColorMode v-slot="{ mode }">
<div role="button" tabindex="0" class="file is-small" :class="{ 'is-black': mode == 'dark' }" @keyup.enter="qrcodeInputLabel.click()">
<label class="file-label" :title="$t('twofaccounts.forms.use_qrcode.title')" ref="qrcodeInputLabel">
<input aria-hidden="true" tabindex="-1" class="file-input" type="file" accept="image/*" v-on:change="uploadQrcode" ref="qrcodeInput">
<span class="file-cta">
@ -436,6 +437,7 @@
</span>
</label>
</div>
</UseColorMode>
</div>
</div>
<FieldError v-if="qrcodeForm.errors.hasAny('qrcode')" :error="qrcodeForm.errors.get('qrcode')" :field="'qrcode'" class="help-for-file" />