Skip to content

Commit

Permalink
Merge pull request #78 from fangshun-z/fix/75
Browse files Browse the repository at this point in the history
fix: disable publishedNode
  • Loading branch information
Ruby-rc authored Jan 25, 2024
2 parents d4f2c88 + 135161a commit a111fe6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/views/local-volumes/LocalVolumeList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ const migrate = async (row: ApiVolume) => {
await dialog.show({
name: row.metadata?.name,
volumeGroup: row.spec?.volumegroup,
disabledNode: row.status?.publishedNode,
});
handleRefresh();
Expand Down
5 changes: 5 additions & 0 deletions src/views/local-volumes/dialogs/MigrateDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<dao-option
v-for="node in volumeGroup?.spec?.accessibility?.nodes ?? []"
:key="node"
:disabled="node === disabledNode"
:value="node"
/>
</dao-select>
Expand Down Expand Up @@ -130,6 +131,10 @@ const props = defineProps({
type: String,
default: '',
},
disabledNode: {
type: String,
default: '',
},
});
const emits = defineEmits(['resolve', 'reject']);
Expand Down

0 comments on commit a111fe6

Please sign in to comment.