Skip to content

Commit

Permalink
use addNewOption for memberlist
Browse files Browse the repository at this point in the history
  • Loading branch information
jxjj committed Sep 23, 2024
1 parent 81ef19e commit 962c197
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions resources/js/components/MemberList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,9 @@
:options="roles"
:canAddNewOption="true"
class="tw-min-w-[10rem]"
>
<template #afterOptions="{ query }">
<Button
@click="$emit('update:roles', [...roles, { label: query }])"
>
Add New Role
</Button>
</template>
</ComboBox>
:canAddNewOptions="true"
@addNewOption="$emit('update:roles', [...roles, $event])"
/>
</td>
</template>

Expand Down Expand Up @@ -226,15 +220,13 @@ import { dayjs, $can } from "@/utils";
import { ComboBox } from "@/components/ComboBox";
import SortableLink from "./SortableLink.vue";
import ManagerBadge from "./ManagerBadge.vue";
import Button from "./Button.vue";
export default {
components: {
GroupTitle,
ComboBox,
SortableLink,
ManagerBadge,
Button,
},
props: [
"editing",
Expand Down

0 comments on commit 962c197

Please sign in to comment.