1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01:00

Show toast when copying SCIM api key and URL (#11608)

This commit is contained in:
Brandon Treston 2024-10-25 15:18:28 -04:00 committed by GitHub
parent 2fb6a9e1ee
commit 237887a368
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,6 +82,11 @@ export class ScimComponent implements OnInit {
copyScimUrl = async () => {
this.platformUtilsService.copyToClipboard(await this.getScimEndpointUrl());
this.toastService.showToast({
message: this.i18nService.t("valueCopied", this.i18nService.t("scimUrl")),
variant: "success",
title: null,
});
};
rotateScimKey = async () => {
@ -114,6 +119,11 @@ export class ScimComponent implements OnInit {
copyScimKey = async () => {
this.platformUtilsService.copyToClipboard(this.formData.get("clientSecret").value);
this.toastService.showToast({
message: this.i18nService.t("valueCopied", this.i18nService.t("scimApiKey")),
variant: "success",
title: null,
});
};
submit = async () => {