Added regenerate copy tweak for internal Zapier integration

no issue

- Updates dialog copy for confirmation of regenerating internal Zapier integration admin key
This commit is contained in:
Rish 2020-05-06 12:36:05 +05:30
parent ae1afac049
commit 6b90aafd20
3 changed files with 7 additions and 1 deletions

View File

@ -13,6 +13,7 @@ export default ModalComponent.extend({
confirm: () => {},
apiKey: alias('model.apiKey'),
integration: alias('model.integration'),
internalIntegration: alias('model.internalIntegration'),
actions: {
confirm() {
this.regenerateApiKey.perform();

View File

@ -5,7 +5,11 @@
<div class="modal-body">
<p>
You can rengenerate <strong>{{capitalize this.apiKey.type}} API Key</strong> any time, but any scripts or applications using it will need to be updated.
{{#if (eq this.internalIntegration "zapier")}}
You will need to locate the Ghost App within your Zapier account and click on "Reconnect" to enter the new Admin API Key.
{{else}}
You can rengenerate <strong>{{capitalize this.apiKey.type}} API Key</strong> any time, but any scripts or applications using it will need to be updated.
{{/if}}
</p>
{{#if this.errorMessage}}
<p class='red'> {{this.errorMessage}}</p>

View File

@ -95,6 +95,7 @@
@model={{hash
apiKey=this.selectedApiKey
integration=this.integration
internalIntegration="zapier"
}}
@confirm={{action "regenerateKey"}}
@close={{action "cancelRegenerateKeyModal"}}