Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit highlighted node changes on global event bus #1683

Merged
merged 13 commits into from
Oct 24, 2023
Merged
7 changes: 6 additions & 1 deletion src/components/modeler/Modeler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

<InspectorButton
ref="inspector-button"
v-if="showComponent && showInspectorButton"
v-show="showComponent && showInspectorButton"
:showInspector="isOpenInspector"
@toggleInspector="[handleToggleInspector($event), setInspectorButtonPosition($event)]"
:style="{ right: inspectorButtonRight + 'px' }"
Expand Down Expand Up @@ -371,6 +371,11 @@
canvasScale(canvasScale) {
this.paperManager.scale = canvasScale;
},
highlightedNodes() {
if (window.ProcessMaker?.EventBus) {
window.ProcessMaker.EventBus.$emit('modeler:highlightedNodes', this.highlightedNodes);
}
},
},
computed: {
showWelcomeMessage() {
Expand Down Expand Up @@ -683,7 +688,7 @@
}
},
registerStatusBar(component) {
this.owner.validationBar.push(component);

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (2)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (2)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (4)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (4)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (1)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (1)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (3)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (3)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (0)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (0)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (4)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (4)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (0)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (0)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (2)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (2)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (1)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (1)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (3)

Unexpected mutation of "owner" prop

Check warning on line 691 in src/components/modeler/Modeler.vue

View workflow job for this annotation

GitHub Actions / ci (3)

Unexpected mutation of "owner" prop
},
/**
* Register a mixin into a node component.
Expand Down
2 changes: 1 addition & 1 deletion src/components/toolbar/toolbar.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$toolbar-background-color: #fff;

.toolbar {
z-index: 3;
z-index: 4;
height: $toolbar-height;
cursor: auto;
width: 100%;
Expand Down
Loading