mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
[23.2] Remove SingleItemSelector deselect label, fix history filters scroll
In this PR: - removed the `deselectLabel` for `SingleItemSelector`, since it is used to only select 1 item - added `overflow-auto` class to History `Index` to prevent filters in advanced menu from being hidden on smaller/zoomed-in screen - fixed `PanelViewMenu` when advanced filters are shown in tool panel; currently it can be confusing as it shows panel views even when filter menu is toggled
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<template>
|
||||
<div v-if="currentUser && currentHistory" id="current-history-panel" class="d-flex flex-column history-index">
|
||||
<div
|
||||
v-if="currentUser && currentHistory"
|
||||
id="current-history-panel"
|
||||
class="d-flex flex-column history-index overflow-auto">
|
||||
<HistoryPanel
|
||||
v-if="!breadcrumbs.length"
|
||||
:list-offset="listOffset"
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
<template>
|
||||
<b-button
|
||||
v-if="showAdvanced"
|
||||
variant="link"
|
||||
class="w-100"
|
||||
size="sm"
|
||||
@click="$emit('update:show-advanced', !showAdvanced)">
|
||||
<slot name="panel-view-selector"></slot><span class="sr-only">Close advanced tool search menu</span>
|
||||
</b-button>
|
||||
<b-dropdown
|
||||
v-else
|
||||
v-b-tooltip.hover.top.noninteractive
|
||||
right
|
||||
block
|
||||
@@ -59,6 +68,10 @@ export default {
|
||||
currentPanelView: {
|
||||
type: String,
|
||||
},
|
||||
showAdvanced: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
storeLoading: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
|
||||
@@ -139,6 +139,7 @@ function onInsertWorkflowSteps(workflowId: string, workflowStepCount: number | u
|
||||
v-if="panelViews && Object.keys(panelViews).length > 1"
|
||||
:panel-views="panelViews"
|
||||
:current-panel-view="currentPanelView"
|
||||
:show-advanced.sync="showAdvanced"
|
||||
:store-loading="loading"
|
||||
@updatePanelView="updatePanelView">
|
||||
<template v-slot:panel-view-selector>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<Multiselect
|
||||
v-if="items"
|
||||
v-model="selectedItem"
|
||||
deselect-label="Can't remove this value"
|
||||
:deselect-label="null"
|
||||
track-by="id"
|
||||
label="text"
|
||||
:options="items"
|
||||
|
||||
Reference in New Issue
Block a user