Skip to content
Snippets Groups Projects
Commit 4b5a27e8 authored by Atanamo's avatar Atanamo
Browse files

Button for closing channels tabs

This will temporary leave the channel...
parent 90dd65b8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -264,8 +264,9 @@
<input type="submit" class="chatSubmitButton">
</div>
<div class="formSection right">
<button class="channelLeaveButton" data-content="label.button.leave_channel">Leave channel</button>
<button class="channelDeleteButton" data-content="label.button.delete_channel">Delete channel</button>
<button class="channelLeaveButton" data-content="label.button.leave_channel">Leave channel</button>
<button class="channelCloseButton" data-content="label.button.close_channel">Close</button>
</div>
</form>
</div>
Loading
Loading
Loading
Loading
@@ -26,6 +26,7 @@ class this.ChatController
channelPasswordInput: '#channelPasswordInput'
channelFlagPublic: '#channelFlagPublic'
channelFlagIRC: '#channelFlagIRC'
channelCloseButton: '.channelCloseButton'
channelLeaveButton: '.channelLeaveButton'
channelDeleteButton: '.channelDeleteButton'
chatForm: '.chatForm'
Loading
Loading
@@ -52,6 +53,7 @@ class this.ChatController
'channelCreateForm submit': '_handleGuiChannelCreateSubmit'
'chatForm submit': '_handleGuiMessageSubmit'
'tabsystemHeaders click': '_handleGuiTabClick'
'channelCloseButton click': '_handleGuiChannelClose'
'channelLeaveButton click': '_handleGuiChannelLeave'
'channelDeleteButton click': '_handleGuiChannelDelete'
 
Loading
Loading
@@ -125,6 +127,11 @@ class this.ChatController
 
@socketHandler.sendChannelJoinRequest(channelName, channelPassword, isPublic, isForIrc)
 
_handleGuiChannelClose: (event) =>
event.preventDefault()
channel = @activeTabPage?.data('channel') or ''
@socketHandler.sendChannelLeaveRequest(channel, true)
_handleGuiChannelLeave: (event) =>
event.preventDefault()
channel = @activeTabPage?.data('channel') or ''
Loading
Loading
Loading
Loading
@@ -59,6 +59,7 @@ class this.Translation
'label.channel_password': 'Channel password'
'label.channel_flag_public': 'Hide joined users'
'label.channel_flag_irc': 'Mirror channel to IRC'
'label.button.close_channel': 'Close'
'label.button.leave_channel': 'Leave channel'
'label.button.delete_channel': 'Delete channel'
}
Loading
Loading
@@ -121,6 +122,7 @@ class this.Translation
'label.channel_password': 'Channel-Passwort'
'label.channel_flag_public': 'Beigetretene User verstecken'
'label.channel_flag_irc': 'Channel ins IRC spiegeln'
'label.button.close_channel': 'Schließen'
'label.button.leave_channel': 'Channel verlassen'
'label.button.delete_channel': 'Channel löschen'
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment