mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
recent_topics_timestamp: Fix tooltip.
d779a1c tweaked `get_full_datetime` to return a string instead
of a {date, time} object. This function is used for recent topics
too but wasn't fixed to use the string.
This resulted in showing 'undefined undefined' in tooltip.
This commit is contained in:
@@ -116,10 +116,7 @@ mock_esm("../../static/js/stream_list", {
|
||||
mock_esm("../../static/js/timerender", {
|
||||
last_seen_status_from_date: () => "Just now",
|
||||
|
||||
get_full_datetime: () => ({
|
||||
date: "date",
|
||||
time: "time",
|
||||
}),
|
||||
get_full_datetime: () => "date at time",
|
||||
});
|
||||
mock_esm("../../static/js/sub_store", {
|
||||
get: (stream) => {
|
||||
@@ -292,7 +289,7 @@ function generate_topic_data(topic_info_array) {
|
||||
invite_only: false,
|
||||
is_web_public: true,
|
||||
last_msg_time: "Just now",
|
||||
full_last_msg_date_time: "date time",
|
||||
full_last_msg_date_time: "date at time",
|
||||
senders: [1, 2],
|
||||
stream: "stream" + stream_id,
|
||||
stream_color: "",
|
||||
|
||||
@@ -278,7 +278,7 @@ function format_topic(topic_data) {
|
||||
muted,
|
||||
topic_muted,
|
||||
participated: topic_data.participated,
|
||||
full_last_msg_date_time: full_datetime.date + " " + full_datetime.time,
|
||||
full_last_msg_date_time: full_datetime,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user