fix: Stop showing mapping hint after mapping (#5586)

* fix: Stop showing mapping hint after mapping

* fix: set value correctly

* chore: clean up mapping hint code
This commit is contained in:
Mutasem Aldmour
2023-03-01 14:02:34 +03:00
committed by GitHub
parent aa2beaa800
commit eac4275a7e
7 changed files with 13 additions and 46 deletions

View File

@@ -11,7 +11,6 @@
:sessionId="sessionId"
:overrideOutputs="connectedCurrentNodeOutputs"
:mappingEnabled="!readOnly"
:showMappingHint="draggableHintShown"
:distanceFromActive="currentNodeDepth"
:isProductionExecutionPreview="isProductionExecutionPreview"
paneType="input"
@@ -142,9 +141,7 @@ import WireMeUp from './WireMeUp.vue';
import {
CRON_NODE_TYPE,
INTERVAL_NODE_TYPE,
LOCAL_STORAGE_MAPPING_FLAG,
MANUAL_TRIGGER_NODE_TYPE,
SCHEDULE_TRIGGER_NODE_TYPE,
START_NODE_TYPE,
} from '@/constants';
import { mapStores } from 'pinia';
@@ -192,7 +189,7 @@ export default mixins(workflowHelpers).extend({
return this.ndvStore.focusedMappableInput;
},
isUserOnboarded(): boolean {
return window.localStorage.getItem(LOCAL_STORAGE_MAPPING_FLAG) === 'true';
return this.ndvStore.isMappingOnboarded;
},
showDraggableHint(): boolean {
const toIgnore = [