Преглед изворни кода

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.
JC Brand пре 7 година
родитељ
комит
deff6e071c

+ 0 - 3
docs/source/configuration.rst

@@ -1363,7 +1363,6 @@ visible_toolbar_buttons
 
     {
         call: false,
-        clear: true,
         emoji: 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'));
             // ... Third-party library code ...
         });
-* *clear*:
-    Provides a button for clearing messages from a chatbox.
 * *emoji*:
     Enables rendering of emoji and provides a toolbar button for choosing them.
 * *toggle_occupants*:

+ 0 - 1
src/converse-chatview.js

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

+ 0 - 4
src/templates/chatroom_toolbar.html

@@ -10,7 +10,3 @@
 {[ if (o.show_occupants_toggle)  { ]}
 <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>
-{[ } ]}
-

+ 0 - 3
src/templates/toolbar.html

@@ -6,6 +6,3 @@
 {[ if (o.show_call_button)  { ]}
 <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>
-{[ } ]}