shows option only to metadata modal edit

This commit is contained in:
Rodrigo Guimarães 2020-11-25 10:38:45 -03:00
parent ad7bf0f157
commit 7cc07f7b8d
1 changed files with 4 additions and 2 deletions

View File

@ -210,7 +210,9 @@
</b-checkbox>
</b-field>
<b-field>
<b-field
v-if="!this.isRepositoryLevel"
>
<b-checkbox
class="is-inline-block"
v-model="editForm.repository_level"
@ -326,7 +328,7 @@
if ((metadatum.metadata_type_object && metadatum.metadata_type_object.form_component) || metadatum.edit_form == '') {
let repository = this.editForm.repository_level;
if (repository && repository === 'yes') {
this.isRepositoryLevel = true;
this.isRepositoryLevel = true;
}
this.fillExtraFormData(this.editForm);