Includes support for flags, reviewable users and queued posts, with REST API backwards compatibility. Co-Authored-By: romanrizzi <romanalejandro@gmail.com> Co-Authored-By: jjaffeux <j.jaffeux@gmail.com>
18 lines
465 B
Handlebars
18 lines
465 B
Handlebars
{{#if multiple}}
|
|
{{dropdown-select-box
|
|
headerIcon=bundle.icon
|
|
class="reviewable-action-dropdown"
|
|
nameProperty="label"
|
|
title=bundle.label
|
|
content=bundle.actions
|
|
onSelect=(action "performById")
|
|
disabled=reviewableUpdating}}
|
|
{{else}}
|
|
{{d-button
|
|
class=(concat "reviewable-action " (dasherize first.id))
|
|
icon=first.icon
|
|
action=(action "perform" first)
|
|
translatedLabel=first.label
|
|
disabled=reviewableUpdating}}
|
|
{{/if}}
|