Skip to content

Commit

Permalink
src
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpalladino committed Aug 9, 2024
1 parent d2f731c commit a0a079c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/trait/TraitDetailPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
v-bind:validation-handler="validationHandler"
v-bind:editable="editable"
v-bind:editable-check-loading="loadingEditable"
v-bind:from-import-table="fromImportTable"
></BaseTraitForm>
</template>
</EditDataForm>
Expand Down
4 changes: 3 additions & 1 deletion src/components/trait/forms/BaseTraitForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>

<div class="column is-full">
<article v-if="!editable && !editableCheckLoading" class="message is-primary mb-3">
<article v-if="!editable && !editableCheckLoading && !fromImportTable && $ability.can('update', 'Trait')" class="message is-primary mb-3">
<div class="message-body">
<div class="media">
<figure class="media-left">
Expand Down Expand Up @@ -380,6 +380,8 @@ export default class BaseTraitForm extends Vue {
editable!: boolean;
@Prop()
editableCheckLoading!: boolean;
@Prop({default: false})
private fromImportTable!: boolean;
private termTypes: TermType[] = Object.values(TermType);
Expand Down

0 comments on commit a0a079c

Please sign in to comment.