Skip to content
Snippets Groups Projects
Commit 90dd65b8 authored by Atanamo's avatar Atanamo
Browse files

Confirm dialogs to leave/delete channel

parent 9a113b76
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -125,15 +125,19 @@ class this.ChatController
 
@socketHandler.sendChannelJoinRequest(channelName, channelPassword, isPublic, isForIrc)
 
_handleGuiChannelDelete: (event) =>
_handleGuiChannelLeave: (event) =>
event.preventDefault()
channel = @activeTabPage?.data('channel') or ''
@socketHandler.sendChannelDeleteRequest(channel)
 
_handleGuiChannelLeave: (event) =>
if confirm(Translation.get('confirm_dialog.leave_channel'))
@socketHandler.sendChannelLeaveRequest(channel, false)
_handleGuiChannelDelete: (event) =>
event.preventDefault()
channel = @activeTabPage?.data('channel') or ''
@socketHandler.sendChannelLeaveRequest(channel, false)
if confirm(Translation.get('confirm_dialog.delete_channel'))
@socketHandler.sendChannelDeleteRequest(channel)
 
_handleGuiMessageSubmit: (event) =>
event.preventDefault()
Loading
Loading
Loading
Loading
@@ -26,6 +26,9 @@ class this.Translation
'manage_msg.welcome_message': 'Welcome message: $message$'
'manage_msg.channel_join_failed': 'Channel join failed! $reason$'
 
'confirm_dialog.leave_channel': 'Really want to leave the channel?'
'confirm_dialog.delete_channel': 'Really want to delete the channel?\nChat history would be lost.'
'msg.server_connection_lost': 'Error: Lost connection to server! Waiting for reconnect...'
'msg.channel_joined': 'Joined \'$channel$\''
'msg.channel_left': 'Left \'$channel$\''
Loading
Loading
@@ -85,6 +88,9 @@ class this.Translation
'manage_msg.welcome_message': 'Willkommensnachricht: $message$'
'manage_msg.channel_join_failed': 'Channel-Beitritt fehlgeschlagen! $reason$'
 
'confirm_dialog.leave_channel': 'Soll der Channel wirklich verlassen werden?'
'confirm_dialog.delete_channel': 'Soll der Channel wirklich gelöscht werden?\nChatverläufe würden verloren gehen.'
'msg.server_connection_lost': 'Fehler: Verbindung zum Server abgerissen! Warten auf Reconnect...'
'msg.channel_joined': 'Channel \'$channel$\' beigetreten'
'msg.channel_left': 'Channel \'$channel$\' verlassen'
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