{%- import 'apostrophe-ui:components/buttons.html' as buttons -%}
{%- if data.options.widgets[data.options.type].edit != false -%}
  <div class="apos-ui">
    <div class="apos-area-controls apos-area-controls--singleton">
      {{ buttons.inContext('Add ' + data.widgetManagers[data.options.type].label, { action: 'add-item', value: data.options.type }) }}
    </div>
  </div>
{%- endif -%}

{%- import 'apostrophe-ui:components/buttons.html' as buttons -%}
{%- set widgetOptions = data.options.widgets[data.options.type] -%}
{%- if widgetOptions.edit != false -%}
  <div class="apos-ui">
    <div class="apos-area-controls apos-area-controls--singleton">
      {{ buttons.inContext(widgetOptions.addLabel or 'Add ' + data.widgetManagers[data.options.type].label, { action: 'add-item', value: data.options.type }) }}
    </div>
  </div>
{%- endif -%}

Add 'addLabel' option to singletons, which allows you to override the text of the add button in an empty singleton.
Add 'addLabel' option to singletons, which allows you to override the text of the add button in an empty singleton.
