⚠️ refactor (human-src): rename user components to employee
This commit is contained in:
@@ -10,7 +10,7 @@ const data = ref({
|
||||
|
||||
function onClick(type: string) {
|
||||
if (type === 'cancel') {
|
||||
navigateTo('/human-src/user')
|
||||
navigateTo('/human-src/employee')
|
||||
} else if (type === 'draft') {
|
||||
// do something
|
||||
} else if (type === 'submit') {
|
||||
@@ -30,7 +30,7 @@ const headerPrep: HeaderPrep = {
|
||||
icon: 'i-lucide-users',
|
||||
addNav: {
|
||||
label: 'Tambah',
|
||||
onClick: () => navigateTo('/human-src/user/add'),
|
||||
onClick: () => navigateTo('/human-src/employee/add'),
|
||||
},
|
||||
}
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ const canCreate = hasCreateAccess(roleAccess)
|
||||
|
||||
<template>
|
||||
<div v-if="canCreate">
|
||||
<FlowUserEntry />
|
||||
<FlowEmployeeEntry />
|
||||
</div>
|
||||
<Error v-else :status-code="403" />
|
||||
</template>
|
||||
+1
-1
@@ -33,7 +33,7 @@ const canRead = hasReadAccess(roleAccess)
|
||||
<template>
|
||||
<div>
|
||||
<div v-if="canRead">
|
||||
<FlowUserList />
|
||||
<FlowEmployeeList />
|
||||
</div>
|
||||
<Error v-else :status-code="403" />
|
||||
</div>
|
||||
Reference in New Issue
Block a user