parent
1c17297187
commit
2d814f64e2
|
@ -7,15 +7,14 @@
|
|||
<a
|
||||
v-for="l in labels" :key="l.id"
|
||||
class="tag"
|
||||
@click="labelEditLabel = l"
|
||||
@click="labelEditLabel = l; isLabelEdit = true"
|
||||
:style="{'background': '#' + l.hex_color, 'color': l.hasDarkColor() ? '#4a4a4a' : '#e5e5e5'}">
|
||||
<span>{{ l.title }}</span>
|
||||
<a class="delete is-small" @click="deleteLabel(l)"></a>
|
||||
</a>
|
||||
</div>
|
||||
<div class="column is-4">
|
||||
<div class="column is-4" v-if="isLabelEdit">
|
||||
<div class="card">
|
||||
{{labelEditLabel}}
|
||||
<header class="card-header">
|
||||
<span class="card-header-title">
|
||||
Edit Label
|
||||
|
@ -46,6 +45,11 @@
|
|||
<input class="input" type="text" placeholder="Label color" v-model="labelEditLabel.hex_color">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control">
|
||||
<button type="submit" class="button is-success is-fullwidth" :class="{ 'is-loading': labelService.loading}">
|
||||
Save
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
<color-picker
|
||||
:color="labelEditLabel.hex_color"
|
||||
|
@ -74,6 +78,7 @@
|
|||
labelService: LabelService,
|
||||
labels: [],
|
||||
labelEditLabel: LabelModel,
|
||||
isLabelEdit: false,
|
||||
color: '',
|
||||
}
|
||||
},
|
||||
|
|
Reference in New Issue
Block a user