From b13ca61d7f12550d9f04860ba39e65e4ffd63050 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 13 Feb 2025 10:33:23 +0800 Subject: [PATCH] Stage Release (#3215) Created by Github action --------- Co-authored-by: Andres Galindo Co-authored-by: Nar -- <28705606+finnar-bin@users.noreply.github.com> --- src/shell/store/content.js | 28 ++++++++++++++++++++++++++++ src/shell/store/fields.js | 8 ++++++++ src/shell/store/headTags.js | 8 ++++++++ src/shell/store/media.js | 34 ++++++++++++++++++++++++++++++++++ src/shell/store/models.js | 8 ++++++++ 5 files changed, 86 insertions(+) diff --git a/src/shell/store/content.js b/src/shell/store/content.js index 33cbfb5872..acff43c44d 100644 --- a/src/shell/store/content.js +++ b/src/shell/store/content.js @@ -303,6 +303,14 @@ export function searchItems( } return res; }, + error: (err) => { + dispatch( + notify({ + kind: "warn", + message: `Failed to search item: ${err?.message || err || ""}`, + }) + ); + }, }); }; } @@ -915,6 +923,16 @@ export function fetchItemPublishing(modelZUID, itemZUID) { ); } }, + error: (err) => { + dispatch( + notify({ + kind: "warn", + message: `Failed to fetch item publishing: ${ + err?.message || err || "" + }`, + }) + ); + }, }); }; } @@ -941,6 +959,16 @@ export function fetchItemPublishings() { ); } }, + error: (err) => { + dispatch( + notify({ + kind: "warn", + message: `Failed to fetch item publishings: ${ + err?.message || err || "" + }`, + }) + ); + }, }); }; } diff --git a/src/shell/store/fields.js b/src/shell/store/fields.js index fa6c2977a0..0144ecef7b 100644 --- a/src/shell/store/fields.js +++ b/src/shell/store/fields.js @@ -114,6 +114,14 @@ export function fetchField(modelZUID, fieldZUID) { }, }); }, + error: (err) => { + dispatch( + notify({ + kind: "warn", + message: `Failed to fetch field: ${err?.message || err || ""}`, + }) + ); + }, }); }; } diff --git a/src/shell/store/headTags.js b/src/shell/store/headTags.js index 34904dda9b..5b7a93f09b 100644 --- a/src/shell/store/headTags.js +++ b/src/shell/store/headTags.js @@ -126,6 +126,14 @@ export const fetchHeadTags = () => { } } }, + error: (err) => { + dispatch( + notify({ + kind: "warn", + message: `Failed to fetch head tags: ${err?.message || err || ""}`, + }) + ); + }, }); }; }; diff --git a/src/shell/store/media.js b/src/shell/store/media.js index b368407160..d80b99fca3 100644 --- a/src/shell/store/media.js +++ b/src/shell/store/media.js @@ -422,6 +422,14 @@ function fetchGroups(binZUID) { throw res; } }, + error: (err) => { + dispatch( + notify({ + kind: "warn", + message: `Failed to fetch groups: ${err?.message || err || ""}`, + }) + ); + }, }); }; } @@ -521,6 +529,14 @@ export function fetchBinFiles(binZUID) { throw res; } }, + error: (err) => { + dispatch( + notify({ + kind: "warn", + message: `Failed to fetch bin files: ${err?.message || err || ""}`, + }) + ); + }, }); }; } @@ -543,6 +559,16 @@ export function fetchGroupFiles(groupZUID) { throw res; } }, + error: (err) => { + dispatch( + notify({ + kind: "warn", + message: `Failed to fetch group files: ${ + err?.message || err || "" + }`, + }) + ); + }, }); }; } @@ -769,6 +795,14 @@ export function searchFiles(term) { throw res; } }, + error: (err) => { + dispatch( + notify({ + kind: "warn", + message: `Failed to search for file: ${err?.message || err || ""}`, + }) + ); + }, }); }; } diff --git a/src/shell/store/models.js b/src/shell/store/models.js index beef38952d..30e6b48c2f 100644 --- a/src/shell/store/models.js +++ b/src/shell/store/models.js @@ -119,6 +119,14 @@ export function fetchModel(modelZUID) { } } }, + error: (err) => { + dispatch( + notify({ + kind: "warn", + message: `Failed to fetch model: ${err?.message || err || ""}`, + }) + ); + }, }); }; }