add project member edit modal, fixes ST-119

This commit is contained in:
Gregor Vostrak
2024-06-03 18:44:00 +02:00
parent 3fc9d8b381
commit d28269ebb0
7 changed files with 151 additions and 8 deletions

View File

@@ -16,9 +16,16 @@ const model = defineModel<string>({
default: '',
});
const props = defineProps<{
hiddenMembers: ProjectMember[];
}>();
const props = withDefaults(
defineProps<{
hiddenMembers: ProjectMember[];
disabled: boolean;
}>(),
{
hiddenMembers: () => [] as ProjectMember[],
disabled: false,
}
);
const searchInput = ref<HTMLInputElement | null>(null);
@@ -161,6 +168,7 @@ function onUnfocus() {
</div>
<TextInput
:value="currentValue"
:disabled="disabled"
@input="updateSearchValue"
data-testid="member_dropdown_search"
@keydown.enter.prevent="updateMember(highlightedItemId)"