Browse Source

feat(gui-v2): add user role enum

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
pull/2716/head
Braks 2 years ago committed by Pranav C
parent
commit
176a959eb8
  1. 6
      packages/nc-gui-v2/lib/enums.ts
  2. 3
      packages/nc-gui-v2/lib/types.ts

6
packages/nc-gui-v2/lib/enums.ts

@ -1,3 +1,9 @@
export enum Role {
Super = 'super',
Admin = 'admin',
User = 'user',
}
export enum Language {
de = 'Deutsch',
en = 'English',

3
packages/nc-gui-v2/lib/types.ts

@ -1,11 +1,12 @@
import type { ComputedRef, ToRefs } from 'vue'
import type { Role } from '~/lib/enums'
export interface User {
id: string
email: string
firstname: string | null
lastname: string | null
roles: string[]
roles: (Role | string)[]
}
export interface State {

Loading…
Cancel
Save