mirror of https://github.com/zulip/zulip.git
popovers: Remove a few entries from stream popover.
These options are pretty low-value, since clicking the stream does the narrow, and it's likely that almost nobody sends messages via these buttons.
This commit is contained in:
parent
ae126c452b
commit
99ea5f4e32
|
@ -204,12 +204,11 @@ exports.start = function (msg_type, opts) {
|
|||
exports.expand_compose_box();
|
||||
|
||||
opts = fill_in_opts_from_current_narrowed_view(msg_type, opts);
|
||||
// If we are invoked by a compose hotkey (c or x) or new topic button
|
||||
// or sidebar stream actions (in stream popover), do not assume that we know what
|
||||
// the message's topic or PM recipient should be.
|
||||
// If we are invoked by a compose hotkey (c or x) or new topic
|
||||
// button, do not assume that we know what the message's topic or
|
||||
// PM recipient should be.
|
||||
if (opts.trigger === "compose_hotkey" ||
|
||||
opts.trigger === "new topic button" ||
|
||||
opts.trigger === "sidebar stream actions") {
|
||||
opts.trigger === "new topic button") {
|
||||
opts.topic = '';
|
||||
opts.private_message_recipient = '';
|
||||
}
|
||||
|
|
|
@ -238,15 +238,6 @@ exports.register_stream_handlers = function () {
|
|||
hashchange.go_to_location(stream_edit_hash);
|
||||
});
|
||||
|
||||
// Narrow to stream
|
||||
$('body').on('click', '.narrow_to_stream', function (e) {
|
||||
var sub = stream_popover_sub(e);
|
||||
exports.hide_stream_popover();
|
||||
narrow.by('stream', sub.name, {trigger: 'sidebar popover'}
|
||||
);
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
// Pin/unpin
|
||||
$('body').on('click', '.pin_to_top', function (e) {
|
||||
var sub = stream_popover_sub(e);
|
||||
|
@ -255,14 +246,6 @@ exports.register_stream_handlers = function () {
|
|||
e.stopPropagation();
|
||||
});
|
||||
|
||||
// Compose a message to stream
|
||||
$('body').on('click', '.compose_to_stream', function (e) {
|
||||
var sub = stream_popover_sub(e);
|
||||
exports.hide_stream_popover();
|
||||
compose_actions.start('stream', {stream: sub.name, trigger: 'sidebar stream actions'});
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
// Mark all messages in stream as read
|
||||
$('body').on('click', '.mark_stream_as_read', function (e) {
|
||||
var sub = stream_popover_sub(e);
|
||||
|
|
|
@ -6,12 +6,6 @@
|
|||
{{t "Stream settings" }}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="narrow_to_stream">
|
||||
<i class="fa fa-bullhorn" aria-hidden="true"></i>
|
||||
{{#tr this}}Narrow to stream <b>__stream.name__</b>{{/tr}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="pin_to_top">
|
||||
<i class="fa fa-thumb-tack stream-pin-icon" aria-hidden="true"></i>
|
||||
|
@ -22,12 +16,6 @@
|
|||
{{/if}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="compose_to_stream">
|
||||
<i class="fa fa-edit" aria-hidden="true"></i>
|
||||
{{#tr this}}Compose a message to stream <b>__stream.name__</b>{{/tr}}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="mark_stream_as_read">
|
||||
<i class="fa fa-book" aria-hidden="true"></i>
|
||||
|
|
Loading…
Reference in New Issue