2018-01-24 23:41:57 +01:00
|
|
|
import {
|
|
|
|
Component,
|
|
|
|
OnChanges,
|
|
|
|
} from '@angular/core';
|
|
|
|
|
2018-02-28 17:55:00 +01:00
|
|
|
import { AuditService } from 'jslib/abstractions/audit.service';
|
2018-01-24 23:41:57 +01:00
|
|
|
import { CipherService } from 'jslib/abstractions/cipher.service';
|
2018-10-23 19:35:26 +02:00
|
|
|
import { CollectionService } from 'jslib/abstractions/collection.service';
|
2018-01-25 22:15:47 +01:00
|
|
|
import { FolderService } from 'jslib/abstractions/folder.service';
|
|
|
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
2019-01-03 16:23:45 +01:00
|
|
|
import { MessagingService } from 'jslib/abstractions/messaging.service';
|
2018-01-26 05:15:56 +01:00
|
|
|
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
2018-04-09 23:36:20 +02:00
|
|
|
import { StateService } from 'jslib/abstractions/state.service';
|
2018-10-23 19:35:26 +02:00
|
|
|
import { UserService } from 'jslib/abstractions/user.service';
|
2018-01-24 23:41:57 +01:00
|
|
|
|
2018-04-06 05:50:06 +02:00
|
|
|
import { AddEditComponent as BaseAddEditComponent } from 'jslib/angular/components/add-edit.component';
|
2018-01-24 23:41:57 +01:00
|
|
|
|
|
|
|
@Component({
|
2018-01-26 20:56:54 +01:00
|
|
|
selector: 'app-vault-add-edit',
|
2018-04-06 18:25:22 +02:00
|
|
|
templateUrl: 'add-edit.component.html',
|
2018-01-24 23:41:57 +01:00
|
|
|
})
|
2018-04-06 05:50:06 +02:00
|
|
|
export class AddEditComponent extends BaseAddEditComponent implements OnChanges {
|
|
|
|
constructor(cipherService: CipherService, folderService: FolderService,
|
|
|
|
i18nService: I18nService, platformUtilsService: PlatformUtilsService,
|
2018-10-23 19:35:26 +02:00
|
|
|
auditService: AuditService, stateService: StateService,
|
2019-01-03 16:23:45 +01:00
|
|
|
userService: UserService, collectionService: CollectionService,
|
|
|
|
messagingService: MessagingService) {
|
2018-10-23 19:35:26 +02:00
|
|
|
super(cipherService, folderService, i18nService, platformUtilsService, auditService, stateService,
|
2019-01-03 16:23:45 +01:00
|
|
|
userService, collectionService, messagingService);
|
2018-01-24 23:41:57 +01:00
|
|
|
}
|
|
|
|
|
2018-10-30 03:43:02 +01:00
|
|
|
async ngOnInit() {
|
|
|
|
// We use ngOnChanges instead.
|
|
|
|
}
|
|
|
|
|
2018-01-24 23:41:57 +01:00
|
|
|
async ngOnChanges() {
|
2018-10-30 03:43:02 +01:00
|
|
|
await super.init();
|
2018-04-06 05:50:06 +02:00
|
|
|
await super.load();
|
2018-02-28 17:55:00 +01:00
|
|
|
}
|
2018-01-24 23:41:57 +01:00
|
|
|
}
|