Bug 41546: Restore the ability to unarchive suggestions
There is a TT condition that has not been moved to JS.
Test plan:
Create a suggestion, archive it
List suggestions and tick "include archived"
Notice that with this patch applied you are able to unarchive the
suggestion
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 69c8a91cd9)
Signed-off-by: Chloé Zermatten <chloe.zermatten@openfifth.co.uk>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
This commit is contained in:
parent
276d9169ea
commit
88a131b777
|
|
@ -1518,11 +1518,11 @@
|
|||
[% IF CAN_user_suggestions_suggestions_delete %]
|
||||
node += '<li><a href="#" data-op="cud-delete" data-suggestionid="%s" class="dropdown-item trigger_action">%s</a></li>'.format(row.suggestion_id, _("Delete"))
|
||||
[% END %]
|
||||
[% UNLESS s.archived %]
|
||||
if (!row.archived){
|
||||
node += '<li><a href="#" class="dropdown-item trigger_action" data-op="cud-archive" data-suggestionid="%s">%s</a></li>'.format(row.suggestion_id, _("Archive"))
|
||||
[% ELSE %]
|
||||
} else {
|
||||
node += '<li><a href="#" class="dropdown-item trigger_action" data-op="cud-unarchive" data-suggestionid="%s">%s</a></li>'.format(row.suggestion_id, _("Unarchive"))
|
||||
[% END %]
|
||||
}
|
||||
node += '</ul></div>'
|
||||
return node
|
||||
[% ELSIF CAN_user_suggestions_suggestions_delete %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue