From 4e67efc07e47a64462cc8aca14369745e7a45592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BB=D0=B0=D0=B1=D1=83=D0=BA=D0=BE=D0=B2=20=D0=AD?= =?UTF-8?q?=D1=80=D0=B8=D0=BA=20=D0=9A=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD?= =?UTF-8?q?=D1=82=D0=B8=D0=BD=D0=BE=D0=B2=D0=B8=D1=87?= Date: Tue, 3 Jun 2025 23:10:45 +0500 Subject: [PATCH 1/2] Fix channel items icon position --- .../ClientApp/src/components/ChannelItem.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Influunt.Host/ClientApp/src/components/ChannelItem.vue b/src/Influunt.Host/ClientApp/src/components/ChannelItem.vue index 89dcd8b..9247d46 100644 --- a/src/Influunt.Host/ClientApp/src/components/ChannelItem.vue +++ b/src/Influunt.Host/ClientApp/src/components/ChannelItem.vue @@ -7,8 +7,8 @@ {{ name }}
+ > + \ No newline at end of file From 5e16068252ed449eba05f0737f4b03e2687b70d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BB=D0=B0=D0=B1=D1=83=D0=BA=D0=BE=D0=B2=20=D0=AD?= =?UTF-8?q?=D1=80=D0=B8=D0=BA=20=D0=9A=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD?= =?UTF-8?q?=D1=82=D0=B8=D0=BD=D0=BE=D0=B2=D0=B8=D1=87?= Date: Tue, 3 Jun 2025 23:28:30 +0500 Subject: [PATCH 2/2] Add approve msgBox for remove channel and remove from favorites actions --- .../ClientApp/src/components/ChannelItem.vue | 33 ++- .../ClientApp/src/components/FeedItem.vue | 188 +++++++++++------- 2 files changed, 139 insertions(+), 82 deletions(-) diff --git a/src/Influunt.Host/ClientApp/src/components/ChannelItem.vue b/src/Influunt.Host/ClientApp/src/components/ChannelItem.vue index 9247d46..2e0cbf4 100644 --- a/src/Influunt.Host/ClientApp/src/components/ChannelItem.vue +++ b/src/Influunt.Host/ClientApp/src/components/ChannelItem.vue @@ -58,11 +58,28 @@ export default { this.channel.hidden = !this.channel.hidden; InfluuntApi.UpdateChannel(this.channel); }, - RemoveChannel: function () { - var self = this; + RemoveChannel: async function () { + var confirmResult = await this.$bvModal.msgBoxConfirm( + "Are you sure you want to delete this channel?", + { + title: "Confirm deletion", + size: "sm", + buttonSize: "sm", + okVariant: "danger", + okTitle: "Remove", + cancelTitle: "Cancel", + hideHeaderClose: false, + centered: true, + headerClass: "p-2 border-bottom-0", + footerClass: "p-2 border-top-0", + contentClass: "bg-dark text-light", + } + ); + if (!confirmResult) return; + + const self = this; + // eslint-disable-next-line InfluuntApi.RemoveChannel(self.id, function (r) { - // eslint-disable-next-line - var rr = r; self.$forceUpdate(); self.deleted = true; }); @@ -81,8 +98,8 @@ export default { .list-group-item:hover { background-color: #333 !important; } -.but svg{ - position: relative; - top: -2px; +.but svg { + position: relative; + top: -2px; } - \ No newline at end of file + diff --git a/src/Influunt.Host/ClientApp/src/components/FeedItem.vue b/src/Influunt.Host/ClientApp/src/components/FeedItem.vue index f99980d..70b4ab1 100644 --- a/src/Influunt.Host/ClientApp/src/components/FeedItem.vue +++ b/src/Influunt.Host/ClientApp/src/components/FeedItem.vue @@ -1,85 +1,125 @@ \ No newline at end of file