From 11ed18a08b3d44c1b32fd27cf62c00cdbdc43ee1 Mon Sep 17 00:00:00 2001 From: JesusPerez Date: Tue, 19 Oct 2021 22:53:44 +0100 Subject: [PATCH] chore: fix infos accordeon selection --- src/components/ProfileView.vue | 125 --------------------------------- src/views/Home.vue | 4 +- 2 files changed, 3 insertions(+), 126 deletions(-) delete mode 100644 src/components/ProfileView.vue diff --git a/src/components/ProfileView.vue b/src/components/ProfileView.vue deleted file mode 100644 index 5dc881e..0000000 --- a/src/components/ProfileView.vue +++ /dev/null @@ -1,125 +0,0 @@ - - diff --git a/src/views/Home.vue b/src/views/Home.vue index 39eebc2..b9de259 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -209,7 +209,9 @@ const update_cloud_selection = (e: any) => { } const onCloudInfoItem = (item: StatusItemType) => { if (item) { - clds_groups.value[cld_sel_idx.value].infos = clds_groups.value[cld_sel_idx.value].infos.map((i: StatusItemType) => ({ ...i, isOpen: i.title !== item.title ? false : !i.isOpen })) + clds_groups.value[cld_sel_idx.value].infos = clds_groups.value[cld_sel_idx.value].infos.map((i: StatusItemType) => ({ + ...i, isOpen: i.title === item.title && i.datetime === item.datetime ? !i.isOpen : false + })) cld_selected.value = clds_groups.value[cld_sel_idx.value] } }