Update UIWindowShare.js
Docker Image CI / build-and-push-image (push) Waiting to run
Maintain Release Merge PR / update-release-pr (push) Waiting to run
release-please / release-please (push) Waiting to run
test / test (18.x) (push) Waiting to run
test / test (20.x) (push) Waiting to run
test / test (22.x) (push) Waiting to run

This commit is contained in:
jelveh
2024-11-18 11:29:15 -08:00
parent 905b5d851e
commit 4cc63b2580
+3 -1
View File
@@ -369,6 +369,9 @@ $(document).on('click', '.remove-permission-link', async function(){
let recipient_username = $(this).attr('data-recipient-username');
let permission = $(this).attr('data-permission');
// remove from list. do this first so the user doesn't have to wait for the server
$('.item-perm-recipient-card[data-recipient-username="'+recipient_username+'"][data-permission="'+permission+'"]').remove();
fetch(puter.APIOrigin + "/auth/revoke-user-user", {
"headers": {
"Content-Type": "application/json",
@@ -380,7 +383,6 @@ $(document).on('click', '.remove-permission-link', async function(){
}),
"method": "POST"
}).then((response) => {
$('.item-perm-recipient-card[data-permission="'+permission+'"]').remove();
}).catch((err) => {
console.error(err);
})