drafts: Change foreground for dark background streams in drafts modal.

In drafts modal, dark background streams still had black foreground;
This changes the foreground to white for the same.
This commit is contained in:
Vaibhav
2019-02-14 21:17:27 +05:30
committed by Tim Abbott
parent 162f06bbbb
commit 2ca8ec371e
3 changed files with 8 additions and 2 deletions

View File

@@ -212,6 +212,7 @@ exports.format_draft = function (draft) {
var space_string = new Handlebars.SafeString(" ");
var stream = draft.stream.length > 0 ? draft.stream : space_string;
var draft_topic = util.get_draft_topic(draft);
var draft_stream_color = stream_data.get_color(draft.stream);
if (draft_topic === '') {
draft_topic = compose.empty_topic_placeholder();
@@ -221,7 +222,8 @@ exports.format_draft = function (draft) {
draft_id: draft.id,
is_stream: true,
stream: stream,
stream_color: stream_data.get_color(draft.stream),
stream_color: draft_stream_color,
dark_background: stream_color.get_color_class(draft_stream_color),
topic: draft_topic,
raw_content: draft.content,
time_stamp: time_stamp,