(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:
Jarosław Sadziński
2023-09-26 10:09:06 +02:00
parent e033889b6a
commit cce185956c
19 changed files with 205 additions and 34 deletions

View File

@@ -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.
*/