diff --git a/src/components/LeftMenuItem.vue b/src/components/LeftMenuItem.vue index 5e0ee461f..d12fb8428 100644 --- a/src/components/LeftMenuItem.vue +++ b/src/components/LeftMenuItem.vue @@ -20,7 +20,13 @@ const itemComputed = computed(() => { }); + + diff --git a/src/pages/Account/Role/AccountRoles.vue b/src/pages/Account/Role/AccountRoles.vue index 7018f4a17..2109a3ab4 100644 --- a/src/pages/Account/Role/AccountRoles.vue +++ b/src/pages/Account/Role/AccountRoles.vue @@ -6,14 +6,17 @@ import { toDate } from 'filters/index'; import VnPaginate from 'src/components/ui/VnPaginate.vue'; import VnLv from 'src/components/ui/VnLv.vue'; import CardList from 'src/components/ui/CardList.vue'; -import VnUserLink from 'src/components/ui/VnUserLink.vue'; import AccountSummary from '../Card/AccountSummary.vue'; +import { ref } from 'vue'; +import RoleForm from './Card/RoleForm.vue'; const stateStore = useStateStore(); const router = useRouter(); const { t } = useI18n(); -const redirectToCreateView = () => { - router.push({ name: 'RoleCreate' }); +const roleCreateDialogRef = ref(null); + +const openCreateModal = () => { + roleCreateDialogRef.value.show(); }; function getApiUrl() { return new URL(window.location).origin; @@ -43,12 +46,15 @@ function navigate(event, id) { v-for="row of rows" > diff --git a/src/pages/Account/Role/Card/RoleForm.vue b/src/pages/Account/Role/Card/RoleForm.vue index 6143239d9..0fef124c6 100644 --- a/src/pages/Account/Role/Card/RoleForm.vue +++ b/src/pages/Account/Role/Card/RoleForm.vue @@ -1,7 +1,7 @@