Skip to content

Commit

Permalink
PR requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
khusroohayat committed May 8, 2024
1 parent 3275db0 commit b63a687
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/components/SubscriptionsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,13 @@
<i class="i-fa6-solid:pen mx-2" @click="showEditGroupModal = true" />
<i class="i-fa6-solid:circle-minus mx-2" @click="groupToDelete = group.groupName" />
</div>
<ConfirmModal
v-if="groupToDelete == group.groupName"
:message="$t('actions.delete_group_confirm')"
@close="groupToDelete = null"
@confirm="deleteGroup(group)"
/>
</button>

<ConfirmModal
v-if="groupToDelete != null"
:message="$t('actions.delete_group_confirm')"
@close="groupToDelete = null"
@confirm="deleteGroup(groupToDelete)"
/>
<button class="btn mx-1" @click="showCreateGroupModal = true">
<i class="i-fa6-solid:circle-plus" />
</button>
Expand Down Expand Up @@ -240,9 +239,9 @@ export default {
this.showEditGroupModal = false;
},
deleteGroup(group) {
this.deleteChannelGroup(group.groupName);
this.channelGroups = this.channelGroups.filter(g => g != group);
this.selectedGroup = this.channelGroups[0];
this.deleteChannelGroup(group);
this.channelGroups = this.channelGroups.filter(g => g.groupName != group);
this.selectedGroup = this.channelGroups[0] || {};
this.groupToDelete = null;
},
checkedChange(subscription) {
Expand Down

0 comments on commit b63a687

Please sign in to comment.