Skip to content

Commit

Permalink
fix(Sticky Node): Fix main header hiding (#3654)
Browse files Browse the repository at this point in the history
  • Loading branch information
mutdmour authored Jul 4, 2022
1 parent baf55d2 commit 88486bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/editor-ui/src/components/MainHeader/MainHeader.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<div :class="{'main-header': true, expanded: !sidebarMenuCollapsed}">
<div v-show="!activeNode" class="top-menu">
<div v-show="!hideMenuBar" class="top-menu">
<ExecutionDetails v-if="isExecutionPage" />
<WorkflowDetails v-else />
</div>
Expand All @@ -17,7 +17,7 @@ import { pushConnection } from '@/components/mixins/pushConnection';
import WorkflowDetails from '@/components/MainHeader/WorkflowDetails.vue';
import ExecutionDetails from '@/components/MainHeader/ExecutionDetails/ExecutionDetails.vue';
import { VIEWS } from '@/constants';
import { STICKY_NODE_TYPE, VIEWS } from '@/constants';
import { INodeUi } from '@/Interface';
export default mixins(
Expand All @@ -39,6 +39,9 @@ export default mixins(
activeNode (): INodeUi | null {
return this.$store.getters.activeNode;
},
hideMenuBar(): boolean {
return Boolean(this.activeNode && this.activeNode.type !== STICKY_NODE_TYPE);
},
},
async mounted() {
// Initialize the push connection
Expand Down

0 comments on commit 88486bc

Please sign in to comment.