add: ability to set home to stack
This commit is contained in:
parent
870289a5bb
commit
5df0ea6152
4 changed files with 31 additions and 13 deletions
|
@ -76,7 +76,7 @@
|
|||
|
||||
<div class="card">
|
||||
<select
|
||||
onchange="set_setting_field('default_timeline', event.target.selectedOptions[0].value)"
|
||||
onchange="set_setting_field('default_timeline', event.target.selectedOptions[0].value.startsWith('{') ? JSON.parse(event.target.selectedOptions[0].value) : event.target.selectedOptions[0].value)"
|
||||
>
|
||||
<option
|
||||
value="MyCommunities"
|
||||
|
@ -129,6 +129,14 @@
|
|||
>
|
||||
All (questions)
|
||||
</option>
|
||||
{% for stack in stacks %}
|
||||
<option
|
||||
value='{"Stack":"{{ stack.id }}"}'
|
||||
selected="{% if home is ending_with(stack.id|as_str) %}true{% else %}false{% endif %}"
|
||||
>
|
||||
{{ stack.name }} (stack)
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<span class="fade"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue