|
|
@ -160,8 +160,8 @@ |
|
|
|
v-bind:trigger-style="{ width: '36px', height: '36px' }" |
|
|
|
) |
|
|
|
div.control |
|
|
|
a.button.random-color-button( |
|
|
|
v-on:click="setColor(newLabel)" |
|
|
|
a.button.random-color-button-edit( |
|
|
|
v-on:click="setEditColor" |
|
|
|
) |
|
|
|
span.icon.is-small |
|
|
|
i.fas.fa-sync-alt |
|
|
@ -185,6 +185,14 @@ |
|
|
|
color: #404040; |
|
|
|
border: none; |
|
|
|
} |
|
|
|
|
|
|
|
.random-color-button-edit { |
|
|
|
height: 36px; |
|
|
|
width: 36px; |
|
|
|
background-color: transparent; |
|
|
|
color: #404040; |
|
|
|
border: none; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|
<script> |
|
|
@ -235,6 +243,10 @@ export default { |
|
|
|
label.text_color = textColor; |
|
|
|
}, |
|
|
|
|
|
|
|
setEditColor() { |
|
|
|
this.setColor(this.editedLabel); |
|
|
|
}, |
|
|
|
|
|
|
|
shortcutKey(label) { |
|
|
|
let shortcut = label.suffix_key; |
|
|
|
if (label.prefix_key) { |
|
|
|