mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(systemtags): color picker open/close events
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
parent
d41efd0b51
commit
70412be255
1 changed files with 3 additions and 2 deletions
|
|
@ -51,9 +51,10 @@
|
|||
<!-- Color picker -->
|
||||
<NcColorPicker :data-cy-systemtags-picker-tag-color="tag.id"
|
||||
:value="`#${tag.color}`"
|
||||
:shown.sync="openedPicker"
|
||||
:shown="openedPicker === tag.id"
|
||||
class="systemtags-picker__tag-color"
|
||||
@update:value="onColorChange(tag, $event)"
|
||||
@update:shown="openedPicker = $event ? tag.id : false"
|
||||
@submit="openedPicker = false">
|
||||
<NcButton :aria-label="t('systemtags', 'Change tag color')" type="tertiary">
|
||||
<template #icon>
|
||||
|
|
@ -210,7 +211,7 @@ export default defineComponent({
|
|||
return {
|
||||
status: Status.BASE,
|
||||
opened: true,
|
||||
openedPicker: false,
|
||||
openedPicker: false as number | false,
|
||||
|
||||
input: '',
|
||||
tags: [] as TagWithId[],
|
||||
|
|
|
|||
Loading…
Reference in a new issue