feat: simpliy editAssignees (#2646)
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2646 Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de> Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
parent
66e60a4e6a
commit
d9a8382049
@ -9,7 +9,6 @@
|
|||||||
label="name"
|
label="name"
|
||||||
:select-placeholder="$t('task.assignee.selectPlaceholder')"
|
:select-placeholder="$t('task.assignee.selectPlaceholder')"
|
||||||
v-model="assignees"
|
v-model="assignees"
|
||||||
ref="userSearchInputRef"
|
|
||||||
>
|
>
|
||||||
<template #tag="{item: user}">
|
<template #tag="{item: user}">
|
||||||
<span class="assignee">
|
<span class="assignee">
|
||||||
@ -106,7 +105,7 @@ async function removeAssignee(user: IUser) {
|
|||||||
|
|
||||||
async function findUser(query: string) {
|
async function findUser(query: string) {
|
||||||
if (query === '') {
|
if (query === '') {
|
||||||
clearAllFoundUsers()
|
foundUsers.value = []
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,10 +120,6 @@ async function findUser(query: string) {
|
|||||||
return u
|
return u
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearAllFoundUsers() {
|
|
||||||
foundUsers.value = []
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@ -140,6 +135,8 @@ function clearAllFoundUsers() {
|
|||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.remove-assignee {
|
.remove-assignee {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 4px;
|
top: 4px;
|
||||||
@ -154,5 +151,4 @@ function clearAllFoundUsers() {
|
|||||||
height: 18px;
|
height: 18px;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</style>
|
</style>
|
Loading…
x
Reference in New Issue
Block a user