Skip to content

Commit 1948635

Browse files
committed
Fixed bug with color randomizer button in edit.
1 parent b2848b0 commit 1948635

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

app/server/static/components/label.vue

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@
160160
v-bind:trigger-style="{ width: '36px', height: '36px' }"
161161
)
162162
div.control
163-
a.button.random-color-button(
164-
v-on:click="setColor(newLabel)"
163+
a.button.random-color-button-edit(
164+
v-on:click="setEditColor"
165165
)
166166
span.icon.is-small
167167
i.fas.fa-sync-alt
@@ -185,6 +185,14 @@
185185
color: #404040;
186186
border: none;
187187
}
188+
189+
.random-color-button-edit {
190+
height: 36px;
191+
width: 36px;
192+
background-color: transparent;
193+
color: #404040;
194+
border: none;
195+
}
188196
</style>
189197

190198
<script>
@@ -235,6 +243,10 @@ export default {
235243
label.text_color = textColor;
236244
},
237245
246+
setEditColor() {
247+
this.setColor(this.editedLabel);
248+
},
249+
238250
shortcutKey(label) {
239251
let shortcut = label.suffix_key;
240252
if (label.prefix_key) {

0 commit comments

Comments
 (0)