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
1 changed files with 10 additions and 0 deletions

View File

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