mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-26 07:57:10 +00:00
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
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:
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user