1
0
mirror of https://github.com/bitwarden/server synced 2025-12-28 14:13:48 +00:00

[AC-1895] AC Team code ownership moves: Bitwarden Portal (#3528)

---------

Co-authored-by: Addison Beck <hello@addisonbeck.com>
This commit is contained in:
Thomas Rittson
2024-02-21 09:18:09 +10:00
committed by GitHub
parent 3a6b2d85d3
commit 0abd52b5be
34 changed files with 52 additions and 38 deletions

View File

@@ -0,0 +1,21 @@
<script>
function unlinkProvider(providerId, id) {
if (confirm('Are you sure you want to unlink this organization from its provider?')) {
$.ajax({
type: "POST",
url: `@Url.Action("Delete", "ProviderOrganizations")?providerId=${providerId}&id=${id}`,
dataType: 'json',
contentType: false,
processData: false,
success: function (response) {
alert("Successfully unlinked provider");
window.location.href = `@Url.Action("Edit", "Providers")?id=${providerId}`;
},
error: function (response) {
alert("Error!");
}
});
}
return false;
}
</script>