Skip to content

Commit 2484cbf

Browse files
Diede Kerkhofkodiakhq[bot]
Diede Kerkhof
authored andcommitted
feat: change setting name from Panzoom to pan
1 parent 3d178a0 commit 2484cbf

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

frank-flow/src/frontend/src/app/header/settings/options/default-settings.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ export class DefaultSettings implements Settings {
1717
ignoreConfigurationSettings = false;
1818
showExplorer = true;
1919
showUnsavedChangesWarning = true;
20-
automaticPanzoom = false;
20+
automaticPan = false;
2121
}

frank-flow/src/frontend/src/app/header/settings/settings.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ <h2>Flow</h2>
202202
<h2>Assistance</h2>
203203
<div class="input-row">
204204
<label
205-
title="When pressing code in the editor the flow automatically locks onto the corresponding node in the flowchart"
206-
>Automatically move flow to selected code</label
205+
title="Automatically pan to the node in the Canvas when the cursor position is at the corresponding element in the Editor"
206+
>Automatically pan to selected node</label
207207
>
208208
<app-toggle
209-
[(state)]="settings.automaticPanzoom"
209+
[(state)]="settings.automaticPan"
210210
(stateChange)="setSettings()"
211211
></app-toggle>
212212
</div>

frank-flow/src/frontend/src/app/header/settings/settings.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ export interface Settings extends FlowSettings {
1111
useLastMode: boolean;
1212
switchWithoutSaving: SwitchWithoutSavingOption;
1313
ignoreConfigurationSettings: boolean;
14-
automaticPanzoom: boolean;
14+
automaticPan: boolean;
1515
}

frank-flow/src/frontend/src/app/shared/services/flow-structure.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class FlowStructureService {
7474
this.isNodeAtPosition(node, position)
7575
);
7676
this.resetHighlightNodeInXml();
77-
if (this.settings.automaticPanzoom) {
77+
if (this.settings.automaticPan) {
7878
this.panToNode();
7979
}
8080
}

0 commit comments

Comments
 (0)