diff --git a/src/components/groupDetail/GroupBudget.vue b/src/components/groupDetail/GroupBudget.vue index 440458e0..54a6a262 100644 --- a/src/components/groupDetail/GroupBudget.vue +++ b/src/components/groupDetail/GroupBudget.vue @@ -2,66 +2,15 @@ import { storeToRefs } from 'pinia' import { useGroupDetailStore } from '/@/stores/groupDetail' -import { useUserStore } from '/@/stores/user' -import type { EditMode } from '/@/components/groupDetail/composables/useGroupInformation' -import EditButton from '/@/components/shared/EditButton.vue' -import InputNumber from '/@/components/shared/InputNumber.vue' -import SimpleButton from '/@/components/shared/SimpleButton.vue' - -interface Props { - isEditMode: boolean - isSending: boolean -} - -const props = defineProps() -const emit = defineEmits<{ - (e: 'changeEditMode', value: EditMode): void - (e: 'finishEditing'): void -}>() - -const userStore = useUserStore() const groupDetailStore = useGroupDetailStore() -const { group, editedValue } = storeToRefs(groupDetailStore) -const { canEditGroup } = groupDetailStore -const { me } = storeToRefs(userStore) - -const hasAuthority = canEditGroup(me.value) +const { group } = storeToRefs(groupDetailStore) diff --git a/src/components/groupDetail/GroupDescription.vue b/src/components/groupDetail/GroupDescription.vue index d94be342..3c054395 100644 --- a/src/components/groupDetail/GroupDescription.vue +++ b/src/components/groupDetail/GroupDescription.vue @@ -2,74 +2,18 @@ import { storeToRefs } from 'pinia' import { useGroupDetailStore } from '/@/stores/groupDetail' -import { useUserStore } from '/@/stores/user' -import type { EditMode } from '/@/components/groupDetail/composables/useGroupInformation' -import InputTextarea from '/@/components/shared/InputTextarea.vue' -import SimpleButton from '/@/components/shared/SimpleButton.vue' - -interface Props { - isEditMode: boolean - isSending: boolean -} - -const props = defineProps() -const emit = defineEmits<{ - (e: 'changeEditMode', value: EditMode): void - (e: 'finishEditing'): void -}>() - -const userStore = useUserStore() const groupDetailStore = useGroupDetailStore() -const { group, editedValue } = storeToRefs(groupDetailStore) -const { canEditGroup } = groupDetailStore -const { me } = storeToRefs(userStore) - -const hasAuthority = canEditGroup(me.value) +const { group } = storeToRefs(groupDetailStore) diff --git a/src/components/groupDetail/GroupMembers.vue b/src/components/groupDetail/GroupMembers.vue index fafa6295..c4de6f93 100644 --- a/src/components/groupDetail/GroupMembers.vue +++ b/src/components/groupDetail/GroupMembers.vue @@ -24,43 +24,41 @@ const { absentMemberOptions, isSending, addMembers, removeMember } = diff --git a/src/components/groupDetail/GroupName.vue b/src/components/groupDetail/GroupName.vue index 924a7d88..e2f72cce 100644 --- a/src/components/groupDetail/GroupName.vue +++ b/src/components/groupDetail/GroupName.vue @@ -6,6 +6,7 @@ import { useUserStore } from '/@/stores/user' import type { EditMode } from '/@/components/groupDetail/composables/useGroupInformation' import InputText from '/@/components/shared/InputText.vue' +import EditButton from '/@/components/shared/EditButton.vue' import SimpleButton from '/@/components/shared/SimpleButton.vue' interface Props { @@ -29,8 +30,8 @@ const hasAuthority = canEditGroup(me.value) diff --git a/src/components/groupDetail/GroupOwners.vue b/src/components/groupDetail/GroupOwners.vue index d3edb578..2304987c 100644 --- a/src/components/groupDetail/GroupOwners.vue +++ b/src/components/groupDetail/GroupOwners.vue @@ -24,42 +24,40 @@ const { absentOwnerOptions, isSending, addOwners, removeOwner } = diff --git a/src/components/shared/InputSelectMultiple.vue b/src/components/shared/InputSelectMultiple.vue index 8282e059..18f2a0b6 100644 --- a/src/components/shared/InputSelectMultiple.vue +++ b/src/components/shared/InputSelectMultiple.vue @@ -269,14 +269,12 @@ onUnmounted(() => {