Ghost/ghost/admin/app/templates/integrations/new.hbs
naz 3b7cbaef05 Added limit check before adding new integration (#1934)
refs https://github.com/TryGhost/Team/issues/599

- Previously user received genetic limit error after putting in integration name and clicking "create" button. This created a little frustrating experience.
- The updated flow does the check before loading the integration modal, so the user receives communication about needed upgrade before doing any work
2021-04-28 19:29:25 +12:00

14 lines
452 B
Handlebars

{{#if showUpgradeModal}}
<GhFullscreenModal @modal="upgrade-custom-integrations-host-limit"
@model={{hash
message=this.hostLimitError.message
}}
@close={{action "cancel"}}
@modifier="action wide" />
{{else}}
<GhFullscreenModal @modal="new-integration"
@model={{this.integration}}
@confirm={{action "save"}}
@close={{action "cancel"}}
@modifier="action wide" />
{{/if}}