Skip to content

Commit

Permalink
fixup! Add color picker for tags
Browse files Browse the repository at this point in the history
Signed-off-by: greta <[email protected]>
  • Loading branch information
GretaD committed Sep 28, 2023
1 parent fba8dcf commit ab745c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
11 changes: 1 addition & 10 deletions src/components/TagItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class="app-navigation-entry-bullet-wrapper"
:value="`#${tag.color}`"
@input="updateColor">
<div :style="{ backgroundColor: getColor }" class="color0 app-navigation-entry-bullet" />
<div :style="{ backgroundColor: tag.color }" class="color0 app-navigation-entry-bullet" />
</NcColorPicker>
</Actions>
<button v-if="!isSet(tag.imapLabel)"
Expand Down Expand Up @@ -76,17 +76,8 @@ export default {
showSaving: false,
renameTagLabel: true,
renameTagInput: false,
editColor: '',
}
},
computed: {
getColor() {
if (this.editColor !== '') {
return this.editColor
}
return this.tag.color
},
},
methods: {
async updateColor(newColor) {
this.editColor = newColor
Expand Down
3 changes: 0 additions & 3 deletions src/components/TagModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ export default {
},
},
methods: {
updateColor(newColor) {
this.editColor = newColor
},
onClose() {
this.$emit('close')
},
Expand Down

0 comments on commit ab745c1

Please sign in to comment.