From f324b3c202a212a1f30e719f674722f4354b1362 Mon Sep 17 00:00:00 2001 From: Sudarshan-21 Date: Mon, 15 Apr 2024 22:56:14 +0530 Subject: [PATCH] chain promise fix --- zimui/src/assets/Error.jpg | Bin 0 -> 4165 bytes zimui/src/components/TopicHome.vue | 28 +++++++++---- zimui/src/pages/HomePage.vue | 34 +++++++++++----- zimui/src/stores/main.ts | 62 +++++++++++++++-------------- 4 files changed, 76 insertions(+), 48 deletions(-) create mode 100644 zimui/src/assets/Error.jpg diff --git a/zimui/src/assets/Error.jpg b/zimui/src/assets/Error.jpg new file mode 100644 index 0000000000000000000000000000000000000000..336f4f37cda1ac477b41407df3a59693124cf001 GIT binary patch literal 4165 zcmb7HXHe7IxBVr7&?O-Oq)H%kK?p_Z9YW|`>4Nm$R1^@UN$&^&r1u^Hkz%0>=#@l} zt|$RPP`VVAf9{?4?#!F_zP$bEoU`|uSu<k)&OQM!oUXnu00IHvtKh2ua5fLb z0<=&l4V0RehK7cYj+UMg$;8OOz{tUZU`FzAUf|{7OA7PxUlicx7P%~XQA%1? zR`!Chg31+)vZRbG21G|k$H>5Vo{8x^2E~oS{J-n0AAr*WqrfNx#1DYsAP5|EHVDW9 z6qXPWh3mgX4TVtAfWWkrxBuAyKwv5eHS}x_V1!UmFbIr-`SIyr;Qx65A!=$kDwP|Z z*W$k=l*}{{eQaCT@T4bZGllyXiXrDmcFIU*6#874>TtB-W%1kMOom zd~6L-(LQ8U-Zf|UtX~`x4d~i-{8I5%UVD=QX|nL!_vhus=@1(1IZ){KJNqA#mL~HU z^SeltJxOti!vi2fUrt^6rztdL@J^(?sm5W8+%pgJiByT8|SZ? zy{&ti>XadXSv6{ymO<2HBJv~Bm38gMN5_Q6(SJ86g%TR2ivIiXzv}`;G#MBGq5?s{ zRMcQ<>VHNc6ltiT0GtJZWJU2y(V(T(H3Tp)Hg-WxGjr$bffUXD))T}CoB{n$r_TV_ z=QST+wqSHo_SYOQds?nA275mp@t{`q;c0Wdek0c+{T+8F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RkasYVgfucYH}Ke`%+25o-}I z2sM0&5YC0RZirklEbGUr+?@ftDSNuMu8W0$=^ybe+7M!|2KcX>L^5IbUHFn`w)J@0 zH{R{{e5$%FTPB9p-w>n5!`=LETi^0HjDLXZ9tLmnF(>H5n{?}8CIM;zGA(~P1PxRV zT2z0+`?F&sp-#rt0xI9v#%}frM&~6hduh@qMF)w>hqA(qV?kGME|^(V3gQIOS0R2z zm(Go46d}mQ83`=1X1!pgIC0_?bL4#8w`j>qj&7=h9vXU8{5gkxGQS-AX_|nYmlo&7 zpV@c5AwKuIk9DU@t$rqD2Zx5C9O)*!|A+DJ1)1@eJmDFA+`I$Dw2g{@k$a#ywKr`zr;%V654aJ%KfRb-v1#ahcZ(6cJqCuClX9 zt|%0p7t%T0tHEn7*ru=!WmQZ>GqJjVh>}x_BPQwx5n?lzjkB;B@_bw`@y2}1cDG@s zRSa~-b!?qIQRwvN*^RoML>E%a(Eufb1mKjF4FrKu|GVi??r;bTiceYt!7qg|GyNxM zz#xzs@W=dq-kp(^12K-Y7t2fmL^g@}CiU@)Kc2Fj*coO{;#N78Z#~YpdAuX2m+z%Dda^Jj5UhAhe|Wv7!&B09!d@w4%ls;n`LJjoDDUkk%bHnZfvY z8}sBC?NT>_#V_1aS&b@7>;b;r{v|4iAPUcR2kVb2Q=>FVJ_ot@y STftgs=Zc8$!gep5&He}NDkfF{ literal 0 HcmV?d00001 diff --git a/zimui/src/components/TopicHome.vue b/zimui/src/components/TopicHome.vue index 3c94d97..343f776 100644 --- a/zimui/src/components/TopicHome.vue +++ b/zimui/src/components/TopicHome.vue @@ -8,7 +8,9 @@ import TopicSectionType from '@/types/TopicSection' import { transformTopicSectionOrSubSectionToCardData } from '@/types/TopicCardData' import ToolBar from '../components/ToolBar.vue' import { useLoading } from 'vue-loading-overlay' +import errimageData from '../assets/Error.jpg' +const errimage = ref(errimageData) const main = useMainStore() const props = defineProps({ @@ -39,7 +41,7 @@ const fetchData = async function () { topic.value = resp } } catch (error) { - //console.error('Error fetching topic:', error) + main.setErrorMessage('An error occured, Please try again.') }finally { loader.hide() dataLoaded.value = true @@ -91,9 +93,10 @@ const goToPreviousPage = () => {