Browse Source

Fixed bug with color randomizer button in edit.

pull/291/head
Federica Nocera 5 years ago
parent
commit
194863532d
1 changed files with 14 additions and 2 deletions
  1. 16
      app/server/static/components/label.vue

16
app/server/static/components/label.vue

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

Loading…
Cancel
Save