Skip to content

Commit

Permalink
CustomAppDetails - add missing notify status
Browse files Browse the repository at this point in the history
  • Loading branch information
AlicjaSzu authored and krzysztofwolski committed Jul 22, 2020
1 parent 50571e4 commit f46f11a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apps/views/CustomAppDetails/CustomAppDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const CustomAppDetails: React.FC<OrderListProps> = ({
const onWebhookDelete = (data: WebhookDelete) => {
if (data.webhookDelete.errors.length === 0) {
notify({
status: "success",
text: intl.formatMessage(commonMessages.savedChanges)
});
navigate(customAppUrl(id));
Expand All @@ -91,6 +92,7 @@ export const CustomAppDetails: React.FC<OrderListProps> = ({
const onAppUpdate = (data: AppUpdate) => {
if (data?.appUpdate?.errors?.length === 0) {
notify({
status: "success",
text: intl.formatMessage(commonMessages.savedChanges)
});
}
Expand All @@ -110,6 +112,7 @@ export const CustomAppDetails: React.FC<OrderListProps> = ({
const onTokenDelete = (data: AppTokenDelete) => {
if (data?.appTokenDelete?.errors.length === 0) {
notify({
status: "success",
text: intl.formatMessage(commonMessages.savedChanges)
});
refetch();
Expand Down

0 comments on commit f46f11a

Please sign in to comment.