Hides term insertion switch on metadata edition form if taxonomy does not allow new term insertion.

This commit is contained in:
Mateus Machado Luna 2019-12-13 10:58:01 -03:00
parent c95dec7365
commit e1f50c0125
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@
</b-select>
</b-field>
<b-field
v-if="taxonomy_id && taxonomies.length && taxonomies.find((taxonomy) => taxonomy.id == taxonomy_id).allow_insert == 'yes'"
:addons="false"
:label="$i18n.get('label_taxonomy_allow_new_terms')">
<b-switch