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