Remove the clear button. It was pretty useless

because it didn't actually clear anything permanently and upon page
reload the messages were there again.
This commit is contained in:
JC Brand 2018-03-25 13:17:24 +02:00
parent 516352c413
commit deff6e071c
4 changed files with 0 additions and 11 deletions

View File

@ -1363,7 +1363,6 @@ visible_toolbar_buttons
{ {
call: false, call: false,
clear: true,
emoji: true, emoji: true,
toggle_occupants: true toggle_occupants: true
} }
@ -1381,8 +1380,6 @@ Allows you to show or hide buttons on the chatboxes' toolbars.
console.log('Bare buddy JID is', data.model.get('jid')); console.log('Bare buddy JID is', data.model.get('jid'));
// ... Third-party library code ... // ... Third-party library code ...
}); });
* *clear*:
Provides a button for clearing messages from a chatbox.
* *emoji*: * *emoji*:
Enables rendering of emoji and provides a toolbar button for choosing them. Enables rendering of emoji and provides a toolbar button for choosing them.
* *toggle_occupants*: * *toggle_occupants*:

View File

@ -370,7 +370,6 @@
'label_start_call': __('Start a call'), 'label_start_call': __('Start a call'),
'label_toggle_spoiler': label_toggle_spoiler, 'label_toggle_spoiler': label_toggle_spoiler,
'show_call_button': _converse.visible_toolbar_buttons.call, 'show_call_button': _converse.visible_toolbar_buttons.call,
'show_clear_button': _converse.visible_toolbar_buttons.clear,
'show_spoiler_button': _converse.visible_toolbar_buttons.spoiler, 'show_spoiler_button': _converse.visible_toolbar_buttons.spoiler,
'use_emoji': _converse.visible_toolbar_buttons.emoji, 'use_emoji': _converse.visible_toolbar_buttons.emoji,
}); });

View File

@ -10,7 +10,3 @@
{[ if (o.show_occupants_toggle) { ]} {[ if (o.show_occupants_toggle) { ]}
<li class="toggle-occupants fa fa-users" title="{{{o.label_hide_occupants}}}"></li> <li class="toggle-occupants fa fa-users" title="{{{o.label_hide_occupants}}}"></li>
{[ } ]} {[ } ]}
{[ if (o.show_clear_button) { ]}
<li class="toggle-clear right fa fa-eraser" title="{{{o.label_clear}}}"></li>
{[ } ]}

View File

@ -6,6 +6,3 @@
{[ if (o.show_call_button) { ]} {[ if (o.show_call_button) { ]}
<li class="toggle-call fa fa-phone" title="{{{o.label_start_call}}}"></li> <li class="toggle-call fa fa-phone" title="{{{o.label_start_call}}}"></li>
{[ } ]} {[ } ]}
{[ if (o.show_clear_button) { ]}
<li class="toggle-clear right fa fa-eraser" title="{{{o.label_clear}}}"></li>
{[ } ]}