diff --git a/src/components/chat/channels/ChannelAction.vue b/src/components/chat/channels/ChannelAction.vue index 9808da7..d3e689e 100644 --- a/src/components/chat/channels/ChannelAction.vue +++ b/src/components/chat/channels/ChannelAction.vue @@ -7,6 +7,7 @@ + @@ -29,6 +30,11 @@ function editChannel() { channels.show.editor = true } +function manageChannel() { + channels.related.manage_to = props.item + channels.show.members = true +} + function deleteChannel() { channels.related.delete_to = props.item channels.show.delete = true diff --git a/src/components/chat/channels/ChannelInvitation.vue b/src/components/chat/channels/ChannelInvitation.vue new file mode 100644 index 0000000..cf38aa1 --- /dev/null +++ b/src/components/chat/channels/ChannelInvitation.vue @@ -0,0 +1,54 @@ + + + + + + + + + + Cancel + Invite + + + + + + diff --git a/src/components/chat/channels/ChannelList.vue b/src/components/chat/channels/ChannelList.vue index 54e796a..e654705 100644 --- a/src/components/chat/channels/ChannelList.vue +++ b/src/components/chat/channels/ChannelList.vue @@ -36,6 +36,7 @@ const channels = useChannels() function createChannel() { channels.related.edit_to = null + channels.related.manage_to = null channels.related.delete_to = null channels.show.editor = true } diff --git a/src/components/chat/channels/ChannelMembers.vue b/src/components/chat/channels/ChannelMembers.vue new file mode 100644 index 0000000..467318a --- /dev/null +++ b/src/components/chat/channels/ChannelMembers.vue @@ -0,0 +1,124 @@ + + + + + @{{ item.account.name }} + + + + + + + + + + + + + + + + Invite someone + + + + (error = val)" + @close="isActive.value = false" + /> + + + + + + + Something went wrong... {{ error }} + + + + + + diff --git a/src/components/chat/channels/ChannelTools.vue b/src/components/chat/channels/ChannelTools.vue index d8f2724..578d92f 100644 --- a/src/components/chat/channels/ChannelTools.vue +++ b/src/components/chat/channels/ChannelTools.vue @@ -2,6 +2,9 @@ + + + @@ -10,6 +13,7 @@