1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

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 622d559653
commit bc0106ce0c
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"}}