1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-23 03:01:23 +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"> <div class="float-right">
@if (org.Status == OrganizationStatusType.Pending) @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> <i class="fa fa-envelope-o fa-lg" title="Resend Setup Invite"></i>
</a> </a>
} }

View File

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