Skip to content

Commit

Permalink
Merge pull request #17872 from guerler/fix_pages_view
Browse files Browse the repository at this point in the history
Remove duplicate tool panel insertion, rely on activity bar
  • Loading branch information
mvdbeek authored Apr 2, 2024
2 parents d47f11d + 709218e commit 1de33e4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
9 changes: 0 additions & 9 deletions client/src/components/Common/PublishedItem.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<script setup lang="ts">
import { computed } from "vue";
import { usePanels } from "@/composables/usePanels";
import ActivityBar from "@/components/ActivityBar/ActivityBar.vue";
import LoadingSpan from "@/components/LoadingSpan.vue";
import FlexPanel from "@/components/Panels/FlexPanel.vue";
import ToolPanel from "@/components/Panels/ToolPanel.vue";
import StatelessTags from "@/components/TagsMultiselect/StatelessTags.vue";
interface Item {
Expand Down Expand Up @@ -45,18 +42,12 @@ const owner = computed(() => props.item?.owner ?? props.item?.username ?? "Unava
const pluralPath = computed(() => plural.value.toLowerCase());
const publishedByUser = computed(() => `/${pluralPath.value}/list_published?f-username=${owner.value}`);
const urlAll = computed(() => `/${pluralPath.value}/list_published`);
const { showToolbox } = usePanels();
</script>

<template>
<div id="columns" class="d-flex">
<ActivityBar />

<FlexPanel v-if="showToolbox" side="left">
<ToolPanel />
</FlexPanel>

<div id="center" class="m-3 w-100 overflow-auto d-flex flex-column">
<slot />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { computed, ref, watch } from "vue";
import { fromSimple } from "@/components/Workflow/Editor/modules/model";
import { useDatatypesMapper } from "@/composables/datatypesMapper";
import { usePanels } from "@/composables/usePanels";
import { provideScopedWorkflowStores } from "@/composables/workflowStores";
import { useUserStore } from "@/stores/userStore";
import type { Workflow } from "@/stores/workflowStore";
Expand All @@ -17,8 +16,6 @@ import { withPrefix } from "@/utils/redirect";
import WorkflowInformation from "./WorkflowInformation.vue";
import ActivityBar from "@/components/ActivityBar/ActivityBar.vue";
import Heading from "@/components/Common/Heading.vue";
import FlexPanel from "@/components/Panels/FlexPanel.vue";
import ToolPanel from "@/components/Panels/ToolPanel.vue";
import WorkflowGraph from "@/components/Workflow/Editor/WorkflowGraph.vue";
library.add(faSpinner, faUser, faBuilding, faPlay, faEdit, faDownload);
Expand Down Expand Up @@ -130,8 +127,6 @@ watch(
}
);
const { showToolbox } = usePanels();
const downloadUrl = computed(() => withPrefix(`/api/workflows/${props.id}/download?format=json-download`));
const importUrl = computed(() => withPrefix(`/workflow/imp?id=${props.id}`));
const runUrl = computed(() => withPrefix(`/workflows/run?id=${props.id}`));
Expand All @@ -157,9 +152,6 @@ const viewUrl = computed(() => withPrefix(`/published/workflow?id=${props.id}`))
<template>
<div id="columns" class="d-flex">
<ActivityBar v-if="!props.embed" />
<FlexPanel v-if="!props.embed && showToolbox" side="left">
<ToolPanel />
</FlexPanel>

<div id="center" class="container-root m-3 w-100 overflow-auto d-flex flex-column">
<div v-if="loading">
Expand Down
3 changes: 0 additions & 3 deletions client/src/composables/usePanels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ export function usePanels() {
return true;
});

const showToolbox = computed(() => showPanels.value);

return {
showPanels,
showToolbox,
};
}

0 comments on commit 1de33e4

Please sign in to comment.