Skip to content

Commit

Permalink
when editing existing dataset, local ID is grey out
Browse files Browse the repository at this point in the history
  • Loading branch information
pjjin-design committed Dec 23, 2024
1 parent e0d3692 commit 82efd0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/DatasetEditorForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
</v-row>
<v-row dense>
<v-col cols="12">
<v-text-field label="Local ID" type="string" v-model="localID" @input="updateIdentifierFromLocalID" variant="outlined" clearable></v-text-field>
<v-text-field label="Local ID" type="string" v-model="localID" @input="updateIdentifierFromLocalID" variant="outlined" clearable :disabled="isEditing"></v-text-field>
</v-col>
</v-row>
<v-row dense>
Expand Down Expand Up @@ -796,6 +796,7 @@ export default defineComponent({
setup() {
const localID = ref('');
const isEditing = computed(() => !isNew.value);
const extractLocalID = (identifier) => {
if (!identifier) {
Expand Down Expand Up @@ -2342,7 +2343,8 @@ export default defineComponent({
fallbackCopyManual,
updateIdentifierFromLocalID,
extractLocalID,
localID
localID,
isEditing
}
}
});
Expand Down

0 comments on commit 82efd0c

Please sign in to comment.