Browse Source

Fix #97 - Hide secret's format selector when the field is locked

Bubka 3 years ago
parent
commit
b4240bf1af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/js/views/twofaccounts/Edit.vue

+ 1 - 1
resources/js/views/twofaccounts/Edit.vue

@@ -31,7 +31,7 @@
                 <!-- secret -->
                 <label class="label" v-html="$t('twofaccounts.forms.secret.label')"></label>
                 <div class="field has-addons">
-                    <p class="control">
+                    <p v-if="!secretIsLocked" class="control">
                         <span class="select">
                             <select @change="form.secret=''" v-model="secretIsBase32Encoded">
                                 <option v-for="format in secretFormats" :value="format.value">{{ format.text }}</option>