vikunja-frontend/src/models/userNamespace.ts

14 lines
484 B
TypeScript
Raw Permalink Normal View History

import UserShareBaseModel from './userShareBase'
2022-07-20 22:42:36 +00:00
2022-08-04 18:57:43 +00:00
import type {INamespace} from '@/modelTypes/INamespace'
import type {IUserNamespace} from '@/modelTypes/IUserNamespace'
// This class extends the user share model with a 'rights' parameter which is used in sharing
2022-07-20 22:42:36 +00:00
export default class UserNamespaceModel extends UserShareBaseModel implements IUserNamespace {
namespaceId: INamespace['id'] = 0
2022-06-23 01:22:21 +00:00
constructor(data: Partial<IUserNamespace>) {
super(data)
this.assignData(data)
}
}