mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-14 21:45:37 -05:00
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
import { Component } from '@angular/core'
|
|
import { FormControl, FormGroup } from '@angular/forms'
|
|
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'
|
|
import { EditDialogComponent } from 'src/app/components/common/edit-dialog/edit-dialog.component'
|
|
import { Group } from 'src/app/data/group'
|
|
import { GroupService } from 'src/app/services/rest/group.service'
|
|
import { UserService } from 'src/app/services/rest/user.service'
|
|
import { SettingsService } from 'src/app/services/settings.service'
|
|
|
|
@Component({
|
|
selector: 'pngx-group-edit-dialog',
|
|
templateUrl: './group-edit-dialog.component.html',
|
|
styleUrls: ['./group-edit-dialog.component.scss'],
|
|
})
|
|
export class GroupEditDialogComponent extends EditDialogComponent<Group> {
|
|
constructor(
|
|
service: GroupService,
|
|
activeModal: NgbActiveModal,
|
|
userService: UserService,
|
|
settingsService: SettingsService
|
|
) {
|
|
super(service, activeModal, userService, settingsService)
|
|
}
|
|
|
|
getCreateTitle() {
|
|
return $localize`Create new user group`
|
|
}
|
|
|
|
getEditTitle() {
|
|
return $localize`Edit user group`
|
|
}
|
|
|
|
getForm(): FormGroup {
|
|
return new FormGroup({
|
|
name: new FormControl(''),
|
|
permissions: new FormControl(null),
|
|
})
|
|
}
|
|
}
|