Skip to content

Commit

Permalink
API hint with plugin description
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Nov 22, 2024
1 parent 5d8b6c1 commit 4e989b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions jdaviz/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@
{{ trayItem.label }}
</j-tooltip>
</v-list-item-title>
<v-list-item-subtitle v-if="state.show_api_hints" style="white-space: normal; font-size: 8pt; padding-top: 4px; padding-bottom: 4px" class="api-hint">
<span class="api-hint" :style="state.tray_items_open.includes(index) ? 'font-weight: bold' : null">plg = {{ config }}.plugins['{{ trayItem.label }}']</span>
</v-list-item-subtitle>
<v-list-item-subtitle style="white-space: normal; font-size: 8pt">
{{ trayItem.tray_item_description }}
</v-list-item-subtitle>
Expand Down
6 changes: 0 additions & 6 deletions jdaviz/components/tray_plugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@
</div>
</v-row>

<v-row v-if="api_hints_enabled">
<span class="api-hint-header">
plg = {{ config }}.plugins['{{ plugin_key }}']
</span>
</v-row>

<v-row v-if="isDisabled()">
<span> {{ getDisabledMsg() }}</span>
</v-row>
Expand Down

0 comments on commit 4e989b5

Please sign in to comment.