mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
recent_topics: Add action to mark topic as read.
This commit is contained in:
@@ -346,6 +346,15 @@ exports.initialize = function () {
|
|||||||
muting_ui.mute(stream_id, topic);
|
muting_ui.mute(stream_id, topic);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// RECENT TOPICS
|
||||||
|
|
||||||
|
$('body').on('click', '.on_hover_topic_read', function (e) {
|
||||||
|
e.stopPropagation();
|
||||||
|
const stream_id = parseInt($(e.currentTarget).attr('data-stream-id'), 10);
|
||||||
|
const topic = $(e.currentTarget).attr('data-topic-name');
|
||||||
|
unread_ops.mark_topic_as_read(stream_id, topic);
|
||||||
|
});
|
||||||
|
|
||||||
// RECIPIENT BARS
|
// RECIPIENT BARS
|
||||||
|
|
||||||
function get_row_id_for_narrowing(narrow_link_elem) {
|
function get_row_id_for_narrowing(narrow_link_elem) {
|
||||||
|
|||||||
@@ -1116,7 +1116,8 @@ td.pointer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.on_hover_topic_edit,
|
.on_hover_topic_edit,
|
||||||
.on_hover_topic_mute {
|
.on_hover_topic_mute,
|
||||||
|
.on_hover_topic_read {
|
||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1126,7 +1127,8 @@ td.pointer {
|
|||||||
|
|
||||||
.on_hover_topic_edit,
|
.on_hover_topic_edit,
|
||||||
.always_visible_topic_edit,
|
.always_visible_topic_edit,
|
||||||
.on_hover_topic_mute {
|
.on_hover_topic_mute,
|
||||||
|
.on_hover_topic_read {
|
||||||
&:hover {
|
&:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
opacity: 1.0;
|
opacity: 1.0;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td class="recent_topic_actions">
|
<td class="recent_topic_actions">
|
||||||
<i class="fa fa-bell-slash on_hover_topic_mute recipient_bar_icon" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" title="{{t 'Mute topic' }}" role="button" tabindex="0" aria-label="{{t 'Mute topic' }}"></i>
|
<i class="fa fa-bell-slash on_hover_topic_mute recipient_bar_icon" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" title="{{t 'Mute topic' }}" role="button" tabindex="0" aria-label="{{t 'Mute topic' }}"></i>
|
||||||
|
<i class="fa fa-check-circle on_hover_topic_read recipient_bar_icon" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" title="{{t 'Mark as read' }}" role="button" tabindex="0" aria-label="{{t 'Mark as read' }}"></i>
|
||||||
</td>
|
</td>
|
||||||
<td class='recent_topic_users'>
|
<td class='recent_topic_users'>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user