Skip to content

Commit

Permalink
Fix plugin data menu bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Jan 29, 2024
1 parent f406f89 commit b545067
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions jdaviz/components/plugin_dataset_select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="single-line" style="width: 100%">
<v-chip v-if="multiselect" style="width: calc(100% - 10px)">
<span>
<j-layer-viewer-icon v-if="data.item.icon" span_style="margin-right: 4px" :icon="data.item.icon" :prevent_invert_if_dark="true" :is_wcs_only="isWCSOnlyLayer()"></j-layer-viewer-icon>
<j-layer-viewer-icon v-if="data.item.icon" span_style="margin-right: 4px" :icon="data.item.icon" :prevent_invert_if_dark="true"></j-layer-viewer-icon>
{{ data.item.label }}
</span>
</v-chip>
Expand Down Expand Up @@ -64,12 +64,6 @@
<script>
module.exports = {
props: ['items', 'selected', 'label', 'hint', 'rules', 'show_if_single_entry', 'multiselect'],
methods: {
isWCSOnlyLayer(item) {
const wcsOnly = Object.keys(this.$props.viewer.wcs_only_layers).includes(item.name)
return wcsOnly
},
}
};
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
:items="dataset_items"
:selected.sync="dataset_selected"
:multiselect="multiselect"
:show_if_single_entry="true"
:show_if_single_entry="false"
label="Data"
hint="Select the data for photometry."
/>
Expand Down

0 comments on commit b545067

Please sign in to comment.