diff --git a/web/src/todo_widget.js b/web/src/todo_widget.js index 74f62daa05..d45e911130 100644 --- a/web/src/todo_widget.js +++ b/web/src/todo_widget.js @@ -7,7 +7,6 @@ import * as blueslip from "./blueslip"; import {$t} from "./i18n"; import {page_params} from "./page_params"; import * as people from "./people"; -import * as util from "./util"; // Any single user should send add a finite number of tasks // to a todo list. We arbitrarily pick this value. @@ -23,22 +22,9 @@ export class TaskData { get_widget_data() { const all_tasks = [...this.task_map.values()]; - all_tasks.sort((a, b) => util.strcmp(a.task, b.task)); - - const pending_tasks = []; - const completed_tasks = []; - - for (const item of all_tasks) { - if (item.completed) { - completed_tasks.push(item); - } else { - pending_tasks.push(item); - } - } const widget_data = { - pending_tasks, - completed_tasks, + all_tasks, }; return widget_data; diff --git a/web/templates/widgets/todo_widget_tasks.hbs b/web/templates/widgets/todo_widget_tasks.hbs index 0785a7124d..bbdfcfb07f 100644 --- a/web/templates/widgets/todo_widget_tasks.hbs +++ b/web/templates/widgets/todo_widget_tasks.hbs @@ -1,26 +1,18 @@
-{{#each pending_tasks}} +{{#each all_tasks}}
  • - -
  • -{{/each}} -{{#each completed_tasks}} -
  • -
  • {{/each}}