mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Delete my account button
Summary: Adding new "Delete my account" button to the profile page that allows users to remove completely their accounts as long as they don't own any team site. Test Plan: Added Reviewers: georgegevoian, paulfitz Reviewed By: georgegevoian, paulfitz Subscribers: paulfitz Differential Revision: https://phab.getgrist.com/D4037
This commit is contained in:
@@ -953,6 +953,14 @@ export async function sendActions(actions: UserAction[]) {
|
||||
await waitForServer();
|
||||
}
|
||||
|
||||
export async function getDocId() {
|
||||
const docId = await driver.wait(() => driver.executeScript(`
|
||||
return window.gristDocPageModel.currentDocId.get()
|
||||
`)) as string;
|
||||
if (!docId) { throw new Error('could not find doc'); }
|
||||
return docId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Confirms dialog for removing rows. In the future, can be used for other dialogs.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user