Merge pull request #17742 from martenson/poptrouble

[24.0] fix overflowing and hiding of storage popovers
This commit is contained in:
Dannon
2024-03-15 12:43:06 -05:00
committed by GitHub
3 changed files with 66 additions and 43 deletions
@@ -22,24 +22,30 @@ const preferredObjectStoreId = computed(() => {
</script>
<template>
<BPopover :target="`history-storage-${historyId}`" triggers="hover" placement="bottomleft">
<BPopover :target="`history-storage-${historyId}`" triggers="hover" placement="bottomleft" boundary="window">
<template v-slot:title>Preferred Target Object Store</template>
<div class="popover-wide">
<p v-if="historyPreferredObjectStoreId" class="history-preferred-object-store-inherited">
This target object store has been set at the history level.
</p>
<p v-else class="history-preferred-object-store-not-inherited">
This target object store has been inherited from your user preferences (set in User -> Preferences ->
Preferred Object Store). If that option is updated, this history will target that new default.
</p>
<p v-if="historyPreferredObjectStoreId" class="history-preferred-object-store-inherited">
This target object store has been set at the history level.
</p>
<p v-else class="history-preferred-object-store-not-inherited">
This target object store has been inherited from your user preferences (set in User -> Preferences ->
Preferred Object Store). If that option is updated, this history will target that new default.
</p>
<ShowSelectedObjectStore
v-if="preferredObjectStoreId"
:preferred-object-store-id="preferredObjectStoreId"
for-what="Galaxy will default to storing this history's datasets in " />
<ShowSelectedObjectStore
v-if="preferredObjectStoreId"
:preferred-object-store-id="preferredObjectStoreId"
for-what="Galaxy will default to storing this history's datasets in " />
<div v-localize>
Change this preference object store target by clicking on the storage button in the history panel.
<div v-localize>
Change this preference object store target by clicking on the storage button in the history panel.
</div>
</div>
</BPopover>
</template>
<style scoped lang="scss">
.popover-wide {
max-width: 30rem;
}
</style>
@@ -1,20 +1,22 @@
<template>
<b-popover target="tool-storage" triggers="hover" placement="bottomleft">
<b-popover target="tool-storage" triggers="hover" placement="bottomleft" boundary="window">
<template v-slot:title>{{ title }}</template>
<p v-if="toolPreferredObjectStoreId">
This target object store has been set at the tool level, by default history or user preferences will be used
and if those are not set Galaxy will pick an adminstrator configured default.
</p>
<ShowSelectedObjectStore
v-if="toolPreferredObjectStoreId"
:preferred-object-store-id="toolPreferredObjectStoreId"
for-what="Galaxy will default to storing this tool run's output in">
</ShowSelectedObjectStore>
<div v-else>
No selection has been made for this tool execution. Defaults from history, user, or Galaxy will be used.
</div>
<div v-localize>
Change this preference object store target by clicking on the storage button in the tool header.
<div class="popover-wide">
<p v-if="toolPreferredObjectStoreId">
This target object store has been set at the tool level, by default history or user preferences will be
used and if those are not set Galaxy will pick an adminstrator configured default.
</p>
<ShowSelectedObjectStore
v-if="toolPreferredObjectStoreId"
:preferred-object-store-id="toolPreferredObjectStoreId"
for-what="Galaxy will default to storing this tool run's output in">
</ShowSelectedObjectStore>
<div v-else>
No selection has been made for this tool execution. Defaults from history, user, or Galaxy will be used.
</div>
<div v-localize>
Change this preference object store target by clicking on the storage button in the tool header.
</div>
</div>
</b-popover>
</template>
@@ -33,3 +35,8 @@ export default {
},
};
</script>
<style scoped lang="scss">
.popover-wide {
max-width: 30rem;
}
</style>
@@ -1,18 +1,22 @@
<template>
<b-popover :target="target" triggers="hover" placement="bottomleft">
<b-popover :target="target" triggers="hover" placement="bottomleft" boundary="window">
<template v-slot:title>{{ title }}</template>
<p v-if="invocationPreferredObjectStoreId">This target object store has been set at the invocation level.</p>
<ShowSelectedObjectStore
v-if="invocationPreferredObjectStoreId"
:preferred-object-store-id="invocationPreferredObjectStoreId"
for-what="Galaxy will default to storing this tool run's output in">
</ShowSelectedObjectStore>
<div v-else>
No selection has been made for this worklfow invocation. Defaults from history, user, or Galaxy will be
used.
</div>
<div v-localize>
Change this preference object store target by clicking on the storage button in the worklfow run header.
<div class="popover-wide">
<p v-if="invocationPreferredObjectStoreId">
This target object store has been set at the invocation level.
</p>
<ShowSelectedObjectStore
v-if="invocationPreferredObjectStoreId"
:preferred-object-store-id="invocationPreferredObjectStoreId"
for-what="Galaxy will default to storing this tool run's output in">
</ShowSelectedObjectStore>
<div v-else>
No selection has been made for this worklfow invocation. Defaults from history, user, or Galaxy will be
used.
</div>
<div v-localize>
Change this preference object store target by clicking on the storage button in the worklfow run header.
</div>
</div>
</b-popover>
</template>
@@ -34,3 +38,9 @@ export default {
},
};
</script>
<style scoped lang="scss">
.popover-wide {
max-width: 30rem;
}
</style>