mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-21 16:18:28 +01:00
Remove platformUtilService.showToast call (#11410)
This commit is contained in:
parent
d8f1527db0
commit
1f330b078d
@ -105,6 +105,11 @@ export class DomainAddEditDialogComponent implements OnInit, OnDestroy {
|
||||
|
||||
copyDnsTxt(): void {
|
||||
this.orgDomainService.copyDnsTxt(this.txtCtrl.value);
|
||||
this.toastService.showToast({
|
||||
variant: "success",
|
||||
title: null,
|
||||
message: this.i18nService.t("valueCopied", this.i18nService.t("dnsTxtRecord")),
|
||||
});
|
||||
}
|
||||
|
||||
// End Form methods
|
||||
|
@ -101,6 +101,11 @@ export class DomainVerificationComponent implements OnInit, OnDestroy {
|
||||
|
||||
copyDnsTxt(dnsTxt: string): void {
|
||||
this.orgDomainService.copyDnsTxt(dnsTxt);
|
||||
this.toastService.showToast({
|
||||
variant: "success",
|
||||
title: null,
|
||||
message: this.i18nService.t("valueCopied", this.i18nService.t("dnsTxtRecord")),
|
||||
});
|
||||
}
|
||||
|
||||
async verifyDomain(orgDomainId: string, domainName: string): Promise<void> {
|
||||
|
@ -180,6 +180,5 @@ describe("Org Domain Service", () => {
|
||||
it("copyDnsTxt copies DNS TXT to clipboard and shows toast", () => {
|
||||
orgDomainService.copyDnsTxt("fakeTxt");
|
||||
expect(jest.spyOn(platformUtilService, "copyToClipboard")).toHaveBeenCalled();
|
||||
expect(jest.spyOn(platformUtilService, "showToast")).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
@ -23,11 +23,6 @@ export class OrgDomainService implements OrgDomainInternalServiceAbstraction {
|
||||
|
||||
copyDnsTxt(dnsTxt: string): void {
|
||||
this.platformUtilsService.copyToClipboard(dnsTxt);
|
||||
this.platformUtilsService.showToast(
|
||||
"success",
|
||||
null,
|
||||
this.i18nService.t("valueCopied", this.i18nService.t("dnsTxtRecord")),
|
||||
);
|
||||
}
|
||||
|
||||
upsert(orgDomains: OrganizationDomainResponse[]): void {
|
||||
|
Loading…
Reference in New Issue
Block a user