The User Group edition modal could be a component and be used to create a group as well
Currently the "Create a group" button opens a new view, which seems a bit overkill for a form that's just one (1) input field and one (1) checkbox. The Group/Create
view is indeed minuscule:
<template>
<main class="container is-fluid">
<h1 class="title">New group</h1>
<GroupForm />
</main>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import GroupForm from '@/components/Group/Form.vue'
export default defineComponent({
components: {
GroupForm
}
})
</script>
It would make more sense to replace it by a Modal component, which would be both the creation and edition modal. The GroupForm
component is actually already used both for group creation and update. So maybe that component could just be wrapped inside a Modal?
Edited by ml bonhomme