1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-22 02:51:33 +01:00

Remove org name from confirmation message (#3218)

Co-authored-by: Rui Tomé <108268980+r-tome@users.noreply.github.com>
This commit is contained in:
Kyle Spearrin 2023-09-01 04:04:32 -04:00 committed by GitHub
parent 6db02e2e5c
commit 1f0251a34e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@
<div class="float-right">
@if (org.Status == OrganizationStatusType.Pending)
{
<a href="#" class="float-right" onclick="return resendOwnerInvite('@org.OrganizationId', '@org.OrganizationName');">
<a href="#" class="float-right" onclick="return resendOwnerInvite('@org.OrganizationId');">
<i class="fa fa-envelope-o fa-lg" title="Resend Setup Invite"></i>
</a>
}

View File

@ -1,14 +1,14 @@
<script>
function resendOwnerInvite(orgId, orgName) {
if (confirm('Resend invite to "' + orgName + '"?')) {
function resendOwnerInvite(orgId) {
if (confirm('Resend invite to organization?')) {
$.ajax({
type: "POST",
url: '@Url.Action("ResendOwnerInvite", "Organizations")' + '?id=' + orgId,
dataType: 'json',
contentType: false,
processData: false,
processData: false,
success: function (response) {
alert('Invitation has been resent!');
alert('Invitation has been resent!');
},
error: function (response) {
alert("Error!");
@ -17,4 +17,4 @@
}
return false;
}
</script>
</script>