mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-29 12:55:21 +01:00
call init functions rather than super
This commit is contained in:
parent
142496edc1
commit
aa290c50ec
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit 965e35604c584f7dcf786f04933c9b2fcf8a4ba0
|
Subproject commit 199884e6ae8f8b2c876ed361a3ba37c1f496e356
|
@ -28,7 +28,7 @@ export class FolderAddEditComponent extends BaseFolderAddEditComponent {
|
|||||||
if (params.folderId) {
|
if (params.folderId) {
|
||||||
this.folderId = params.folderId;
|
this.folderId = params.folderId;
|
||||||
}
|
}
|
||||||
await super.ngOnInit();
|
await this.init();
|
||||||
if (queryParamsSub != null) {
|
if (queryParamsSub != null) {
|
||||||
queryParamsSub.unsubscribe();
|
queryParamsSub.unsubscribe();
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ export class AttachmentsComponent extends BaseAttachmentsComponent {
|
|||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
const queryParamsSub = this.route.queryParams.subscribe(async (params) => {
|
const queryParamsSub = this.route.queryParams.subscribe(async (params) => {
|
||||||
this.cipherId = params.cipherId;
|
this.cipherId = params.cipherId;
|
||||||
await super.ngOnInit();
|
await this.init();
|
||||||
if (queryParamsSub != null) {
|
if (queryParamsSub != null) {
|
||||||
queryParamsSub.unsubscribe();
|
queryParamsSub.unsubscribe();
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ export class CollectionsComponent extends BaseCollectionsComponent {
|
|||||||
});
|
});
|
||||||
const queryParamsSub = this.route.queryParams.subscribe(async (params) => {
|
const queryParamsSub = this.route.queryParams.subscribe(async (params) => {
|
||||||
this.cipherId = params.cipherId;
|
this.cipherId = params.cipherId;
|
||||||
await super.ngOnInit();
|
await this.load();
|
||||||
if (queryParamsSub != null) {
|
if (queryParamsSub != null) {
|
||||||
queryParamsSub.unsubscribe();
|
queryParamsSub.unsubscribe();
|
||||||
}
|
}
|
||||||
|
@ -28,8 +28,7 @@ export class PasswordHistoryComponent extends BasePasswordHistoryComponent {
|
|||||||
} else {
|
} else {
|
||||||
this.close();
|
this.close();
|
||||||
}
|
}
|
||||||
|
await this.init();
|
||||||
await super.ngOnInit();
|
|
||||||
if (queryParamsSub != null) {
|
if (queryParamsSub != null) {
|
||||||
queryParamsSub.unsubscribe();
|
queryParamsSub.unsubscribe();
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ export class ShareComponent extends BaseShareComponent {
|
|||||||
});
|
});
|
||||||
const queryParamsSub = this.route.queryParams.subscribe(async (params) => {
|
const queryParamsSub = this.route.queryParams.subscribe(async (params) => {
|
||||||
this.cipherId = params.cipherId;
|
this.cipherId = params.cipherId;
|
||||||
await super.ngOnInit();
|
await this.load();
|
||||||
if (queryParamsSub != null) {
|
if (queryParamsSub != null) {
|
||||||
queryParamsSub.unsubscribe();
|
queryParamsSub.unsubscribe();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user