mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-26 02:16:16 -04:00
feat(pad-settings): added possibility to delete pad by the creator (#6730)
This commit is contained in:
parent
ac4489875f
commit
1e3a61e5fb
10 changed files with 84 additions and 15 deletions
|
@ -250,6 +250,19 @@ export const sendUserChanges = async (socket:any, data:any) => await sendMessage
|
|||
},
|
||||
});
|
||||
|
||||
|
||||
/*
|
||||
* Convenience function to send a delete pad request.
|
||||
*/
|
||||
export const sendPadDelete = async (socket:any, data:any) => await sendMessage(socket, {
|
||||
type: 'PAD_DELETE',
|
||||
component: 'pad',
|
||||
data: {
|
||||
padId: data.padId
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Convenience function that waits for an ACCEPT_COMMIT message. Asserts that the new revision
|
||||
* matches the expected revision.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue