mirror of https://github.com/zulip/zulip.git
15 lines
383 B
JavaScript
15 lines
383 B
JavaScript
function set_tutorial_status(status, callback) {
|
|
return channel.post({
|
|
url: "/json/users/me/tutorial_status",
|
|
data: {status: JSON.stringify(status)},
|
|
success: callback,
|
|
});
|
|
}
|
|
|
|
export function initialize() {
|
|
if (page_params.needs_tutorial) {
|
|
set_tutorial_status("started");
|
|
narrow.by("is", "private", {trigger: "sidebar"});
|
|
}
|
|
}
|