2018-10-18 02:18:29 +03:00
|
|
|
<header class="modal-header" data-test-modal="new-integration">
|
|
|
|
<h1>New custom integration</h1>
|
|
|
|
</header>
|
2019-03-15 17:38:54 +03:00
|
|
|
{{!-- disable mouseDown so it doesn't trigger focus-out validations --}}
|
2019-12-13 17:20:29 +03:00
|
|
|
<button class="close" href title="Close" {{action "closeModal"}} {{action (optional this.noop) on="mouseDown"}}>
|
2019-03-15 17:38:54 +03:00
|
|
|
{{svg-jar "close"}}
|
|
|
|
</button>
|
2018-10-18 02:18:29 +03:00
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
<fieldset>
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhFormGroup @errors={{this.integration.errors}} @hasValidated={{this.integration.hasValidated}} @property="name">
|
2018-10-24 16:04:17 +03:00
|
|
|
<label for="new-integration-name" class="fw6">Name</label>
|
2018-10-18 02:18:29 +03:00
|
|
|
<input type="text"
|
2019-12-13 17:20:29 +03:00
|
|
|
value={{this.integration.name}}
|
2018-10-18 02:18:29 +03:00
|
|
|
oninput={{action "updateName" value="target.value"}}
|
|
|
|
id="new-integration-name"
|
2018-10-24 16:04:17 +03:00
|
|
|
class="gh-input mt1"
|
2018-10-18 02:18:29 +03:00
|
|
|
name="integration-name"
|
|
|
|
autofocus="autofocus"
|
|
|
|
autocapitalize="off"
|
|
|
|
autocorrect="off"
|
|
|
|
data-test-input="new-integration-name">
|
2019-12-13 19:11:49 +03:00
|
|
|
<GhErrorMessage @errors={{this.integration.errors}} @property="name" data-test-error="new-integration-name" />
|
2020-01-16 18:14:03 +03:00
|
|
|
</GhFormGroup>
|
2018-10-18 02:18:29 +03:00
|
|
|
</fieldset>
|
2021-03-04 23:49:15 +03:00
|
|
|
|
|
|
|
{{#if this.errorMessage}}
|
|
|
|
<p class="error"><strong class="response">{{this.errorMessage}}</strong></p>
|
|
|
|
{{/if}}
|
2018-10-18 02:18:29 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2019-03-15 17:38:54 +03:00
|
|
|
<button
|
|
|
|
class="gh-btn"
|
|
|
|
{{action "closeModal"}}
|
|
|
|
{{!-- disable mouseDown so it doesn't trigger focus-out validations --}}
|
2019-12-13 17:20:29 +03:00
|
|
|
{{action (optional this.noop) on="mouseDown"}}
|
2019-03-15 17:38:54 +03:00
|
|
|
data-test-button="cancel-new-integration"
|
|
|
|
>
|
2018-10-18 02:18:29 +03:00
|
|
|
<span>Cancel</span>
|
|
|
|
</button>
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhTaskButton @buttonText="Create"
|
|
|
|
@successText="Created"
|
|
|
|
@task={{this.createIntegration}}
|
2021-03-05 15:16:43 +03:00
|
|
|
@class="gh-btn gh-btn-black gh-btn-icon"
|
2020-01-16 18:14:03 +03:00
|
|
|
data-test-button="create-integration" />
|
2018-10-18 02:18:29 +03:00
|
|
|
</div>
|