penambahan fungsi role dan mapping role serta logout
This commit is contained in:
@@ -4,21 +4,16 @@
|
||||
import { writable } from "svelte/store";
|
||||
|
||||
const roleUser = [
|
||||
{ label: "Admin", value: "admin" },
|
||||
{ label: "User", value: "user" },
|
||||
{ label: "IT", value: "it" },
|
||||
{ label: "Guest", value: "guest" },
|
||||
{ label: "Super Admin", value: "superadmin" },
|
||||
{ label: "Manager", value: "manager" },
|
||||
{ label: "Staff", value: "staff" },
|
||||
{ label: "Accountant", value: "accountant" },
|
||||
{ label: "Project Manager", value: "projectmanager" },
|
||||
,
|
||||
{ label: "Accounting", value: "accounting" },
|
||||
{ label: "GA", value: "ga" },
|
||||
{ label: "HR", value: "hr" },
|
||||
{ label: "Support", value: "support" },
|
||||
{ label: "Office Manager", value: "officemanager" },
|
||||
{ label: "Operation Manager", value: "operationmanager" },
|
||||
{ label: "Purchasing", value: "purchasing" },
|
||||
{ label: "Finance", value: "finance" },
|
||||
{ label: "Villa Manager", value: "villamanager" },
|
||||
{ label: "S & M", value: "s&m" },
|
||||
{ label: "Office", value: "office" },
|
||||
{ label: "HM", value: "hm" },
|
||||
{ label: "VM", value: "vm" },
|
||||
];
|
||||
|
||||
type User = {
|
||||
@@ -529,7 +524,11 @@
|
||||
>
|
||||
<option value="" disabled>Select Role</option>
|
||||
{#each roleUser as role}
|
||||
<option value={role.value}>{role.label}</option>
|
||||
{#if role}
|
||||
<option value={role.value}
|
||||
>{role.label}</option
|
||||
>
|
||||
{/if}
|
||||
{/each}
|
||||
</select>
|
||||
{#if $formErrors.role}
|
||||
|
||||
Reference in New Issue
Block a user