Skip to content

Commit 45c81a0

Browse files
committed
fix bug in node color change
1 parent 19595b8 commit 45c81a0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/components/output/GraphOutput.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,18 @@ onUnmounted(() => {
442442
<q-badge
443443
rounded
444444
:label="selectedElement.type"
445-
text-color="black"
445+
:text-color="getContrastingColor(selectedElement.color)"
446446
:style="`background-color: ${selectedElement.color};`"
447-
/>
447+
>
448+
<q-popup-proxy>
449+
<q-color
450+
v-model="selectedElement.color"
451+
@change="nodeColorChange(selectedElement)"
452+
no-header-tabs
453+
no-footer
454+
/>
455+
</q-popup-proxy>
456+
</q-badge>
448457
</div>
449458
<div v-else-if="selectedElement.nodeOrRelationship === 'relationship'">
450459
<div class="text-subtitle1">Relationship properties</div>

0 commit comments

Comments
 (0)