mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
left_sidebar: Add "Drafts" item.
This currently shows the drafts as a popup. Eventually, we'll want to migrate it to be a view in the center pane, as we did with Recent Topics. This uses the same style as starred messages in order to show the number of drafts. See CZO for more context: https://chat.zulip.org/#narrow/stream/101-design/topic/drafts.20in.20sidebar
This commit is contained in:
committed by
Tim Abbott
parent
f2c7e8e80f
commit
df8f0b2afe
@@ -22,12 +22,15 @@ import * as people from "./people";
|
||||
import * as stream_data from "./stream_data";
|
||||
import * as sub_store from "./sub_store";
|
||||
import * as timerender from "./timerender";
|
||||
import * as ui_util from "./ui_util";
|
||||
import * as util from "./util";
|
||||
|
||||
function set_count(count) {
|
||||
const draft_count = count.toString();
|
||||
const text = $t({defaultMessage: "Drafts ({draft_count})"}, {draft_count});
|
||||
$(".compose_drafts_button").text(text);
|
||||
const drafts_li = $(".top_left_drafts");
|
||||
ui_util.update_unread_count_in_dom(drafts_li, count);
|
||||
}
|
||||
|
||||
export const draft_model = (function () {
|
||||
|
||||
Reference in New Issue
Block a user