mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
[SM-340] Fix share modal not closing on cancel (#4041)
This commit is contained in:
@@ -72,7 +72,7 @@
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
></i>
|
></i>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" data-dismiss="modal">{{ "cancel" | i18n }}</button>
|
<button type="button" (click)="close()">{{ "cancel" | i18n }}</button>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Component } from "@angular/core";
|
import { Component } from "@angular/core";
|
||||||
|
|
||||||
|
import { ModalRef } from "@bitwarden/angular/components/modal/modal.ref";
|
||||||
import { ShareComponent as BaseShareComponent } from "@bitwarden/angular/components/share.component";
|
import { ShareComponent as BaseShareComponent } from "@bitwarden/angular/components/share.component";
|
||||||
import { CipherService } from "@bitwarden/common/abstractions/cipher.service";
|
import { CipherService } from "@bitwarden/common/abstractions/cipher.service";
|
||||||
import { CollectionService } from "@bitwarden/common/abstractions/collection.service";
|
import { CollectionService } from "@bitwarden/common/abstractions/collection.service";
|
||||||
@@ -19,7 +20,8 @@ export class ShareComponent extends BaseShareComponent {
|
|||||||
collectionService: CollectionService,
|
collectionService: CollectionService,
|
||||||
platformUtilsService: PlatformUtilsService,
|
platformUtilsService: PlatformUtilsService,
|
||||||
logService: LogService,
|
logService: LogService,
|
||||||
organizationService: OrganizationService
|
organizationService: OrganizationService,
|
||||||
|
private modalRef: ModalRef
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
collectionService,
|
collectionService,
|
||||||
@@ -30,4 +32,8 @@ export class ShareComponent extends BaseShareComponent {
|
|||||||
organizationService
|
organizationService
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected close() {
|
||||||
|
this.modalRef.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user