mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
challenges: can delete challenge
This commit is contained in:
parent
a4e6025185
commit
28f45baf7b
1 changed files with 3 additions and 0 deletions
|
|
@ -85,6 +85,9 @@
|
|||
<textarea cols=3 class='option-content' placeholder='Description'>{@challenge.description}</textarea>
|
||||
<input type=number class='option-content' placeholder='Gems Prize' value={@challenge.prize} />
|
||||
</div>
|
||||
{{#with @challenge}}
|
||||
<a class='btn btn-small btn-danger' x-bind=click:removeAt >Delete</a>
|
||||
{{/}}
|
||||
{/}
|
||||
<!-- elseif breaks here, have to start a new if --->
|
||||
{#if and(not(_editing.challenges[@challenge.id]),equal(@challenge.uid,_user.id))}
|
||||
|
|
|
|||
Loading…
Reference in a new issue