mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
update other parts
This commit is contained in:
1 parent
fc324aec21
commit
eb46a9fcf8
6 files changed
+8
-9
No files matched your search
@@ -12,8 +12,8 @@
|
||||
async function deleteAccount() {
|
||||
try {
|
||||
await sdk.forConsole.account.updateStatus();
|
||||
showDelete = false;
|
||||
await invalidate(Dependencies.ACCOUNT);
|
||||
showDelete = false;
|
||||
addNotification({
|
||||
type: 'success',
|
||||
message: `Account was deleted `
|
||||
|
||||
@@ -28,18 +28,18 @@
|
||||
|
||||
async function logout(session: Models.Session) {
|
||||
await sdk.forConsole.account.deleteSession(session.$id);
|
||||
invalidate(Dependencies.ACCOUNT_SESSIONS);
|
||||
trackEvent(Submit.AccountDeleteSession);
|
||||
if (session.current) {
|
||||
await goto(`${base}/login`);
|
||||
}
|
||||
invalidate(Dependencies.ACCOUNT_SESSIONS);
|
||||
}
|
||||
|
||||
async function logoutAll() {
|
||||
await sdk.forConsole.account.deleteSessions();
|
||||
invalidate(Dependencies.ACCOUNT_SESSIONS);
|
||||
trackEvent(Submit.AccountDeleteAllSessions);
|
||||
await goto(`${base}/login`);
|
||||
invalidate(Dependencies.ACCOUNT_SESSIONS);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -14,16 +14,15 @@
|
||||
async function deleteOrg() {
|
||||
try {
|
||||
await sdk.forConsole.teams.delete($organization.$id);
|
||||
await invalidate(Dependencies.ACCOUNT);
|
||||
addNotification({
|
||||
type: 'success',
|
||||
message: `${$organization.name} has been deleted`
|
||||
});
|
||||
trackEvent(Submit.OrganizationDelete);
|
||||
if ($organizationList?.total > 1) {
|
||||
await invalidate(Dependencies.ACCOUNT);
|
||||
goto(`${base}/console/`);
|
||||
} else {
|
||||
await invalidate(Dependencies.ACCOUNT);
|
||||
goto(`${base}/console/onboarding`);
|
||||
}
|
||||
showDelete = false;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
let name: string, email: string, roles: string[];
|
||||
let error: string;
|
||||
|
||||
const create = async () => {
|
||||
async function create() {
|
||||
const url = `${$page.url.origin}/console/project-${$page.params.project}/auth/teams/team-${$page.params.team}/members`;
|
||||
|
||||
try {
|
||||
@@ -41,7 +41,7 @@
|
||||
error = e.message;
|
||||
trackError(e, Submit.MemberCreate);
|
||||
}
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<Modal {error} onSubmit={create} size="big" bind:show={showCreate}>
|
||||
|
||||
+1
-1
@@ -40,6 +40,7 @@
|
||||
$createDocument.document,
|
||||
$createDocument.permissions
|
||||
);
|
||||
await invalidate(Dependencies.DOCUMENTS);
|
||||
|
||||
addNotification({
|
||||
message: 'Document has been created',
|
||||
@@ -48,7 +49,6 @@
|
||||
trackEvent(Submit.DocumentCreate, {
|
||||
customId: !!$createDocument.id
|
||||
});
|
||||
await invalidate(Dependencies.DOCUMENTS);
|
||||
|
||||
createDocument.reset();
|
||||
wizard.hide();
|
||||
|
||||
+1
-1
@@ -59,9 +59,9 @@
|
||||
$work,
|
||||
$work.$permissions
|
||||
);
|
||||
await invalidate(Dependencies.DOCUMENT);
|
||||
|
||||
currentDoc = JSON.stringify($work);
|
||||
await invalidate(Dependencies.DOCUMENT);
|
||||
trackEvent(Submit.DocumentUpdate);
|
||||
disableUpdate = true;
|
||||
addNotification({
|
||||
|
||||
Reference in new issue
Block a user