This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/templates/components/reviewable-bundled-action.hbs
Robin Ward b58867b6e9 FEATURE: New 'Reviewable' model to make reviewable items generic
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>
2019-03-28 12:45:10 -04:00

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}}