feat: simpliy editAssignees (#2646)
continuous-integration/drone/push Build is failing Details

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: #2646
Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
Dominik Pschenitschni 2022-11-07 11:41:49 +00:00 committed by konrad
parent 66e60a4e6a
commit d9a8382049
1 changed files with 16 additions and 20 deletions

View File

@ -9,7 +9,6 @@
label="name"
:select-placeholder="$t('task.assignee.selectPlaceholder')"
v-model="assignees"
ref="userSearchInputRef"
>
<template #tag="{item: user}">
<span class="assignee">
@ -106,7 +105,7 @@ async function removeAssignee(user: IUser) {
async function findUser(query: string) {
if (query === '') {
clearAllFoundUsers()
foundUsers.value = []
return
}
@ -121,10 +120,6 @@ async function findUser(query: string) {
return u
})
}
function clearAllFoundUsers() {
foundUsers.value = []
}
</script>
<style lang="scss" scoped>
@ -140,19 +135,20 @@ function clearAllFoundUsers() {
margin-right: 0;
}
.remove-assignee {
position: absolute;
top: 4px;
left: 2px;
color: var(--danger);
background: var(--white);
padding: 0 4px;
display: block;
border-radius: 100%;
font-size: .75rem;
width: 18px;
height: 18px;
z-index: 100;
}
}
.remove-assignee {
position: absolute;
top: 4px;
left: 2px;
color: var(--danger);
background: var(--white);
padding: 0 4px;
display: block;
border-radius: 100%;
font-size: .75rem;
width: 18px;
height: 18px;
z-index: 100;
}
</style>