mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
todo_widget: Do not sort alphabetically and by status of completion.
Earlier the tasks in a list were sorted alphabetically and on marking one complete, it was pushed under any incomplete tasks. This behaviour can be unexpected and confusing, so now each task is appended to the bottom of the list on being added, and no shifting takes place on marking it completed. Fixes part of #20213.
This commit is contained in:
@@ -1,26 +1,18 @@
|
||||
<br />
|
||||
{{#each pending_tasks}}
|
||||
{{#each all_tasks}}
|
||||
<li>
|
||||
<label class="checkbox">
|
||||
<div>
|
||||
<input type="checkbox" class="task" data-key="{{ key }}" />
|
||||
<input type="checkbox" class="task" data-key="{{ key }}" {{#if completed}}checked{{/if}}/>
|
||||
<span></span>
|
||||
</div>
|
||||
<div>
|
||||
{{#if completed}}
|
||||
<strike><strong>{{ task }}</strong>{{#if desc }} - {{ desc }}{{/if}}</strike>
|
||||
{{else}}
|
||||
<strong>{{ task }}</strong>{{#if desc }} - {{ desc }}{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</label>
|
||||
|
||||
</li>
|
||||
{{/each}}
|
||||
{{#each completed_tasks}}
|
||||
<li>
|
||||
<label class="checkbox">
|
||||
<div>
|
||||
<input type="checkbox" class="task" data-key="{{ key }}" checked="checked"/>
|
||||
<span></span>
|
||||
</div>
|
||||
<strike><em><strong>{{ task }}</strong>{{#if desc }} - {{ desc }}{{/if}}</em></strike>
|
||||
</label>
|
||||
</li>
|
||||
{{/each}}
|
||||
|
||||
Reference in New Issue
Block a user