From 74d56aa5227e140f282bc78fcaf6ff31b1f63f0a Mon Sep 17 00:00:00 2001 From: Massedil Date: Mon, 3 Jun 2024 18:31:39 +0200 Subject: [PATCH 1/6] update oruga-next to 0.8.10 to solve #1443 --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index c5216f080..2c293227e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@fullcalendar/daygrid": "^6.1.10", "@fullcalendar/interaction": "^6.1.10", "@fullcalendar/vue3": "^6.1.10", - "@oruga-ui/oruga-next": "^0.8.2", + "@oruga-ui/oruga-next": "^0.8.10", "@oruga-ui/theme-oruga": "^0.2.0", "@sentry/tracing": "^7.1", "@sentry/vue": "^7.1", @@ -3138,9 +3138,9 @@ "dev": true }, "node_modules/@oruga-ui/oruga-next": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/@oruga-ui/oruga-next/-/oruga-next-0.8.5.tgz", - "integrity": "sha512-HnODRTrurmke7O5rRNdrbqYuNIdMrnBJ+P3jh6J7/Lk/zgMnpsObSGj/6JfQRvdf5Wq++Ch5yVUys0V4Lm08JQ==", + "version": "0.8.10", + "resolved": "https://registry.npmjs.org/@oruga-ui/oruga-next/-/oruga-next-0.8.10.tgz", + "integrity": "sha512-ETPSoGZu1parbj8C3V2ZojQnN4ptQMiJEwS9Hx44NcaDzu4q/FDsYkKYiz6G9kx8cDceXXxvydfOUpZePVVdzw==", "peerDependencies": { "vue": "^3.0.0" } diff --git a/package.json b/package.json index 8cdb8f38a..d12f1b2c0 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@apollo/client": "^3.3.16", "@framasoft/socket": "^1.0.0", "@framasoft/socket-apollo-link": "^1.0.0", - "@oruga-ui/oruga-next": "^0.8.2", + "@oruga-ui/oruga-next": "^0.8.10", "@oruga-ui/theme-oruga": "^0.2.0", "@fullcalendar/core": "^6.1.10", "@fullcalendar/daygrid": "^6.1.10", From 66280a07e607914576b1ae62eff3acf8695c2c0e Mon Sep 17 00:00:00 2001 From: Massedil Date: Mon, 17 Jun 2024 18:12:18 +0200 Subject: [PATCH 2/6] post data are correctly restored when editing --- src/views/Posts/EditView.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/Posts/EditView.vue b/src/views/Posts/EditView.vue index db018434c..91564253b 100644 --- a/src/views/Posts/EditView.vue +++ b/src/views/Posts/EditView.vue @@ -195,6 +195,10 @@ onMounted(async () => { pictureFile.value = await buildFileFromIMedia(post.value?.picture); }); +// This is useful when post data is already cached from the API during navigation inside the app +editablePost.value = { ...editablePost.value, ...post.value }; + +// This watch() function is useful when post data loads directly from the API upon page load watch(post, async (newPost: IPost | undefined, oldPost: IPost | undefined) => { if (oldPost?.picture !== newPost?.picture) { pictureFile.value = await buildFileFromIMedia(post.value?.picture); From c0680f4bd62ee32198fe34412b6b54183c6fbafd Mon Sep 17 00:00:00 2001 From: Massedil Date: Wed, 19 Jun 2024 15:21:37 +0200 Subject: [PATCH 3/6] type='text' is not valid for a