Loading client/src/components/Workflow/Editor/Index.vue +20 −5 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ @onUpgrade="onUpgrade" /> </div> </div> <div ref="right-panel" class="unified-panel-body workflow-right p-2"> <div ref="rightPanelElement" class="unified-panel-body workflow-right p-2"> <div v-if="!initialLoading"> <FormTool v-if="hasActiveNodeTool" Loading Loading @@ -184,7 +184,7 @@ import { useMagicKeys, whenever } from "@vueuse/core"; import { logicAnd, logicNot, logicOr } from "@vueuse/math"; import { Toast } from "composables/toast"; import { storeToRefs } from "pinia"; import Vue, { computed, nextTick, onUnmounted, ref, unref } from "vue"; import Vue, { computed, nextTick, onUnmounted, ref, unref, watch } from "vue"; import { getUntypedWorkflowParameters } from "@/components/Workflow/Editor/modules/parameters"; import { ConfirmDialog } from "@/composables/confirmDialog"; Loading Loading @@ -366,6 +366,22 @@ export default { setTagsHandler.set(tags.value, newTags); } watch( () => stateStore.activeNodeId, () => { scrollToTop(); } ); const rightPanelElement = ref(null); function scrollToTop() { rightPanelElement.value?.scrollTo({ top: 0, behavior: "instant", }); } const { comments } = storeToRefs(commentStore); const { getStepIndex, steps } = storeToRefs(stepStore); const { activeNodeId } = storeToRefs(stateStore); Loading Loading @@ -427,6 +443,8 @@ export default { setAnnotation, tags, setTags, rightPanelElement, scrollToTop, connectionStore, hasChanges, hasInvalidConnections, Loading Loading @@ -914,9 +932,6 @@ export default { this.setCreator(creator); } }, onActiveNode(nodeId) { this.$refs["right-panel"].scrollTop = 0; }, onInsertedStateMessages(insertedStateMessages) { this.insertedStateMessages = insertedStateMessages; this.hideModal(); Loading Loading
client/src/components/Workflow/Editor/Index.vue +20 −5 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ @onUpgrade="onUpgrade" /> </div> </div> <div ref="right-panel" class="unified-panel-body workflow-right p-2"> <div ref="rightPanelElement" class="unified-panel-body workflow-right p-2"> <div v-if="!initialLoading"> <FormTool v-if="hasActiveNodeTool" Loading Loading @@ -184,7 +184,7 @@ import { useMagicKeys, whenever } from "@vueuse/core"; import { logicAnd, logicNot, logicOr } from "@vueuse/math"; import { Toast } from "composables/toast"; import { storeToRefs } from "pinia"; import Vue, { computed, nextTick, onUnmounted, ref, unref } from "vue"; import Vue, { computed, nextTick, onUnmounted, ref, unref, watch } from "vue"; import { getUntypedWorkflowParameters } from "@/components/Workflow/Editor/modules/parameters"; import { ConfirmDialog } from "@/composables/confirmDialog"; Loading Loading @@ -366,6 +366,22 @@ export default { setTagsHandler.set(tags.value, newTags); } watch( () => stateStore.activeNodeId, () => { scrollToTop(); } ); const rightPanelElement = ref(null); function scrollToTop() { rightPanelElement.value?.scrollTo({ top: 0, behavior: "instant", }); } const { comments } = storeToRefs(commentStore); const { getStepIndex, steps } = storeToRefs(stepStore); const { activeNodeId } = storeToRefs(stateStore); Loading Loading @@ -427,6 +443,8 @@ export default { setAnnotation, tags, setTags, rightPanelElement, scrollToTop, connectionStore, hasChanges, hasInvalidConnections, Loading Loading @@ -914,9 +932,6 @@ export default { this.setCreator(creator); } }, onActiveNode(nodeId) { this.$refs["right-panel"].scrollTop = 0; }, onInsertedStateMessages(insertedStateMessages) { this.insertedStateMessages = insertedStateMessages; this.hideModal(); Loading