Skip to content

Commit

Permalink
don't allow deleting "Default orientation" from data-menu
Browse files Browse the repository at this point in the history
* other orientation layers can be deleted.  If the currently selected orientation is deleted, that viewer will default back to Default orientation
  • Loading branch information
kecnry committed Nov 1, 2023
1 parent f54d268 commit 22750cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdaviz/components/viewer_data_select_item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ module.exports = {
isMosviz = this.$props.viewer.config === 'mosviz'
isCubeviz = this.$props.viewer.config === 'cubeviz'
isPluginData = !(this.$props.item.meta.Plugin === undefined)
return notSelected && (isPluginData || (!isLastDataset && !isMosviz && !isCubeviz))
return notSelected && (isPluginData || (!isLastDataset && !isMosviz && !isCubeviz)) && (this.$props.item.name !== 'Default orientation')
},
selectTipId() {
if (this.multi_select) {
Expand Down

0 comments on commit 22750cc

Please sign in to comment.