Skip to content

Commit

Permalink
Merge pull request #1578 from merico-dev/1566-successfailure-notifica…
Browse files Browse the repository at this point in the history
…tion-has-unexpected-loading-state

1566 successfailure notification has unexpected loading state
  • Loading branch information
GerilLeto authored Nov 20, 2024
2 parents acdf6ba + eebe30e commit da975c9
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtable/api",
"version": "13.44.1",
"version": "13.44.2",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtable/dashboard",
"version": "13.44.1",
"version": "13.44.2",
"license": "Apache-2.0",
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtable/root",
"version": "13.44.1",
"version": "13.44.2",
"private": true,
"workspaces": [
"api",
Expand Down
2 changes: 1 addition & 1 deletion settings-form/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtable/settings-form",
"version": "13.44.1",
"version": "13.44.2",
"license": "Apache-2.0",
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions settings-form/src/account/add-account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function AddAccountForm({ postSubmit, styles = defaultStyles, initialRoleID }: I
message: t('account.state.added'),
color: 'green',
autoClose: true,
loading: false,
});
postSubmit();
} catch (error: $TSFixMe) {
Expand All @@ -58,6 +59,7 @@ function AddAccountForm({ postSubmit, styles = defaultStyles, initialRoleID }: I
message: error.message,
color: 'red',
autoClose: true,
loading: false,
});
}
};
Expand Down
2 changes: 2 additions & 0 deletions settings-form/src/account/delete-account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export function DeleteAccount({ id, name, onSuccess, styles = defaultStyles }: I
message: t('account.state.deleted', { name }),
color: 'green',
autoClose: true,
loading: false,
});
onSuccess();
} catch (error: $TSFixMe) {
Expand All @@ -45,6 +46,7 @@ export function DeleteAccount({ id, name, onSuccess, styles = defaultStyles }: I
message: error.message,
color: 'red',
autoClose: true,
loading: false,
});
}
};
Expand Down
2 changes: 2 additions & 0 deletions settings-form/src/account/edit-account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function EditAccountForm({ id, name, email, role_id, postSubmit, styles = defaul
message: t('account.state.updated'),
color: 'green',
autoClose: true,
loading: false,
});
postSubmit();
} catch (error: $TSFixMe) {
Expand All @@ -67,6 +68,7 @@ function EditAccountForm({ id, name, email, role_id, postSubmit, styles = defaul
message: error.message,
color: 'red',
autoClose: true,
loading: false,
});
}
};
Expand Down
2 changes: 2 additions & 0 deletions settings-form/src/account/login/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export function LoginForm({ postSubmit, styles = defaultStyles }: ILoginForm) {
message: t('account.state.logged_in'),
color: 'green',
autoClose: true,
loading: false,
});
postSubmit(res);
} catch (error: $TSFixMe) {
Expand All @@ -52,6 +53,7 @@ export function LoginForm({ postSubmit, styles = defaultStyles }: ILoginForm) {
message: error.message,
color: 'red',
autoClose: true,
loading: false,
});
}
};
Expand Down
2 changes: 2 additions & 0 deletions settings-form/src/api-key/add-api-key.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function AddAPIKeyForm({ postSubmit, styles = defaultStyles, initialRoleID }: IA
message: t('api_key.state.added'),
color: 'green',
autoClose: true,
loading: false,
});
postSubmit(app_id, app_secret);
} catch (error: $TSFixMe) {
Expand All @@ -55,6 +56,7 @@ function AddAPIKeyForm({ postSubmit, styles = defaultStyles, initialRoleID }: IA
message: error.message,
color: 'red',
autoClose: true,
loading: false,
});
}
};
Expand Down
2 changes: 2 additions & 0 deletions settings-form/src/api-key/delete-api-key.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export function DeleteAPIKey({ id, name, onSuccess, styles = defaultStyles }: ID
message: t('global_sql_snippet.state.deleted', { name }),
color: 'green',
autoClose: true,
loading: false,
});
onSuccess();
} catch (error: $TSFixMe) {
Expand All @@ -45,6 +46,7 @@ export function DeleteAPIKey({ id, name, onSuccess, styles = defaultStyles }: ID
message: error.message,
color: 'red',
autoClose: true,
loading: false,
});
}
};
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@devtable/website",
"private": true,
"license": "Apache-2.0",
"version": "13.44.1",
"version": "13.44.2",
"scripts": {
"dev": "vite",
"preview": "vite preview"
Expand Down
2 changes: 2 additions & 0 deletions website/src/pages/dashboard-editor-page/page-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const DashboardEditorPageContent = observer(
title: 'Successful',
message: 'This dashboard is updated',
color: 'green',
loading: false,
autoClose: true,
});
await store.currentDetail?.content.load();
Expand All @@ -75,6 +76,7 @@ export const DashboardEditorPageContent = observer(
// @ts-expect-error type of error
message: error.message,
color: 'red',
loading: false,
autoClose: true,
});
}
Expand Down

0 comments on commit da975c9

Please sign in to comment.