diff --git a/client/src/components/ActivityBar/ActivityBar.vue b/client/src/components/ActivityBar/ActivityBar.vue index 51fa15b085e9..a1d580142005 100644 --- a/client/src/components/ActivityBar/ActivityBar.vue +++ b/client/src/components/ActivityBar/ActivityBar.vue @@ -134,7 +134,7 @@ function onToggleSidebar(toggle: string = "", to: string | null = null) { const syncActivities = () => { activityStore.sync(); - if (config.value && config.value.client_mode == "minimal_workflow") { + if (config.value && ["workflow_centric", "workflow_runner"].indexOf(config.value.client_mode) >= 0) { userStore.untoggleToolbarIfNeeded(); } }; diff --git a/client/src/components/Workflow/List/WorkflowCard.vue b/client/src/components/Workflow/List/WorkflowCard.vue index f217a1a76ec2..32cf53014eaa 100644 --- a/client/src/components/Workflow/List/WorkflowCard.vue +++ b/client/src/components/Workflow/List/WorkflowCard.vue @@ -27,11 +27,13 @@ interface Props { workflow: any; gridView?: boolean; publishedView?: boolean; + allowWorkflowManagement?: boolean; } const props = withDefaults(defineProps(), { gridView: false, publishedView: false, + allowWorkflowManagement: true, }); const emit = defineEmits<{ @@ -134,6 +136,7 @@ async function onTagClick(tag: string) { @@ -185,7 +188,7 @@ async function onTagClick(tag: string) {
[]; interface Props { activeList?: "my" | "shared_with_me" | "published"; - advancedOptions?: boolean; + clientMode?: "full" | "workflow_centric" | "workflow_runner"; initialFilterText?: string; } const props = withDefaults(defineProps(), { activeList: "my", - advancedOptions: true, + clientMode: "full", initialFilterText: "", }); @@ -89,6 +89,7 @@ const validFilters = computed(() => workflowFilters.value.getValidFilters(rawFil const invalidFilters = computed(() => workflowFilters.value.getValidFilters(rawFilters.value, true).invalidFilters); const isSurroundedByQuotes = computed(() => /^["'].*["']$/.test(filterText.value)); const hasInvalidFilters = computed(() => !isSurroundedByQuotes.value && Object.keys(invalidFilters.value).length > 0); +const allowWorkflowManagement = computed(() => props.clientMode == "full"); function updateFilterValue(filterKey: string, newValue: any) { const currentFilterText = filterText.value; @@ -222,10 +223,10 @@ onMounted(() => {
Workflows - +
- + My workflows @@ -233,7 +234,6 @@ onMounted(() => { @@ -262,7 +262,7 @@ onMounted(() => { - +