|
|
@ -1,4 +1,4 @@ |
|
|
<sqx-modal-dialog large="true" (closed)="cancel()"> |
|
|
<sqx-modal-dialog large="true" fullHeight="true" (closed)="cancel()"> |
|
|
<ng-container title> |
|
|
<ng-container title> |
|
|
<ng-container *ngIf="mode === 'EditTrigger'"> |
|
|
<ng-container *ngIf="mode === 'EditTrigger'"> |
|
|
Edit Trigger |
|
|
Edit Trigger |
|
|
@ -33,21 +33,25 @@ |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
|
|
|
|
|
|
<ng-container *ngIf="step === 2 && schemas"> |
|
|
<ng-container *ngIf="step === 2 && schemas"> |
|
|
<ng-container [ngSwitch]="triggerType"> |
|
|
<form [formGroup]="triggerForm.form" (submit)="saveTrigger()"> |
|
|
<ng-container *ngSwitchCase="'AssetChanged'"> |
|
|
<ng-container [ngSwitch]="triggerType"> |
|
|
<sqx-asset-changed-trigger #triggerControl |
|
|
<ng-container *ngSwitchCase="'AssetChanged'"> |
|
|
[trigger]="trigger" |
|
|
<sqx-asset-changed-trigger |
|
|
(triggerChanged)="selectTrigger($event)"> |
|
|
[trigger]="trigger" |
|
|
</sqx-asset-changed-trigger> |
|
|
[triggerForm]="triggerForm.form" |
|
|
|
|
|
[triggerFormSubmitted]="triggerForm.submitted | async"> |
|
|
|
|
|
</sqx-asset-changed-trigger> |
|
|
|
|
|
</ng-container> |
|
|
|
|
|
<ng-container *ngSwitchCase="'ContentChanged'"> |
|
|
|
|
|
<sqx-content-changed-trigger |
|
|
|
|
|
[schemas]="schemas" |
|
|
|
|
|
[trigger]="trigger" |
|
|
|
|
|
[triggerForm]="triggerForm.form" |
|
|
|
|
|
[triggerFormSubmitted]="triggerForm.submitted | async"> |
|
|
|
|
|
</sqx-content-changed-trigger> |
|
|
|
|
|
</ng-container> |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
<ng-container *ngSwitchCase="'ContentChanged'"> |
|
|
</form> |
|
|
<sqx-content-changed-trigger #triggerControl |
|
|
|
|
|
[schemas]="schemas" |
|
|
|
|
|
[trigger]="trigger" |
|
|
|
|
|
(triggerChanged)="selectTrigger($event)"> |
|
|
|
|
|
</sqx-content-changed-trigger> |
|
|
|
|
|
</ng-container> |
|
|
|
|
|
</ng-container> |
|
|
|
|
|
</ng-container> |
|
|
</ng-container> |
|
|
|
|
|
|
|
|
<ng-container *ngIf="step === 3"> |
|
|
<ng-container *ngIf="step === 3"> |
|
|
@ -62,61 +66,71 @@ |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
|
|
|
|
|
|
<ng-container *ngIf="step === 4"> |
|
|
<ng-container *ngIf="step === 4"> |
|
|
<ng-container [ngSwitch]="actionType"> |
|
|
<form [formGroup]="actionForm.form" (submit)="saveAction()"> |
|
|
<ng-container *ngSwitchCase="'Algolia'"> |
|
|
<ng-container [ngSwitch]="actionType"> |
|
|
<sqx-algolia-action #actionControl |
|
|
<ng-container *ngSwitchCase="'Algolia'"> |
|
|
[action]="action" |
|
|
<sqx-algolia-action |
|
|
(actionChanged)="selectAction($event)"> |
|
|
[action]="action" |
|
|
</sqx-algolia-action> |
|
|
[actionForm]="actionForm.form" |
|
|
</ng-container> |
|
|
[actionFormSubmitted]="actionForm.submitted | async"> |
|
|
<ng-container *ngSwitchCase="'AzureQueue'"> |
|
|
</sqx-algolia-action> |
|
|
<sqx-azure-queue-action #actionControl |
|
|
</ng-container> |
|
|
[action]="action" |
|
|
<ng-container *ngSwitchCase="'AzureQueue'"> |
|
|
(actionChanged)="selectAction($event)"> |
|
|
<sqx-azure-queue-action |
|
|
</sqx-azure-queue-action> |
|
|
[action]="action" |
|
|
</ng-container> |
|
|
[actionForm]="actionForm.form" |
|
|
<ng-container *ngSwitchCase="'ElasticSearch'"> |
|
|
[actionFormSubmitted]="actionForm.submitted | async"> |
|
|
<sqx-elastic-search-action #actionControl |
|
|
</sqx-azure-queue-action> |
|
|
[action]="action" |
|
|
</ng-container> |
|
|
(actionChanged)="selectAction($event)"> |
|
|
<ng-container *ngSwitchCase="'ElasticSearch'"> |
|
|
</sqx-elastic-search-action> |
|
|
<sqx-elastic-search-action |
|
|
|
|
|
[action]="action" |
|
|
|
|
|
[actionForm]="actionForm.form" |
|
|
|
|
|
[actionFormSubmitted]="actionForm.submitted | async"> |
|
|
|
|
|
</sqx-elastic-search-action> |
|
|
|
|
|
</ng-container> |
|
|
|
|
|
<ng-container *ngSwitchCase="'Fastly'"> |
|
|
|
|
|
<sqx-fastly-action |
|
|
|
|
|
[action]="action" |
|
|
|
|
|
[actionForm]="actionForm.form" |
|
|
|
|
|
[actionFormSubmitted]="actionForm.submitted | async"> |
|
|
|
|
|
</sqx-fastly-action> |
|
|
|
|
|
</ng-container> |
|
|
|
|
|
<ng-container *ngSwitchCase="'Slack'"> |
|
|
|
|
|
<sqx-slack-action |
|
|
|
|
|
[action]="action" |
|
|
|
|
|
[actionForm]="actionForm.form" |
|
|
|
|
|
[actionFormSubmitted]="actionForm.submitted | async"> |
|
|
|
|
|
</sqx-slack-action> |
|
|
|
|
|
</ng-container> |
|
|
|
|
|
<ng-container *ngSwitchCase="'Webhook'"> |
|
|
|
|
|
<sqx-webhook-action |
|
|
|
|
|
[action]="action" |
|
|
|
|
|
[actionForm]="actionForm.form" |
|
|
|
|
|
[actionFormSubmitted]="actionForm.submitted | async"> |
|
|
|
|
|
</sqx-webhook-action> |
|
|
|
|
|
</ng-container> |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
<ng-container *ngSwitchCase="'Fastly'"> |
|
|
</form> |
|
|
<sqx-fastly-action #actionControl |
|
|
|
|
|
[action]="action" |
|
|
|
|
|
(actionChanged)="selectAction($event)"> |
|
|
|
|
|
</sqx-fastly-action> |
|
|
|
|
|
</ng-container> |
|
|
|
|
|
<ng-container *ngSwitchCase="'Slack'"> |
|
|
|
|
|
<sqx-slack-action #actionControl |
|
|
|
|
|
[action]="action" |
|
|
|
|
|
(actionChanged)="selectAction($event)"> |
|
|
|
|
|
</sqx-slack-action> |
|
|
|
|
|
</ng-container> |
|
|
|
|
|
<ng-container *ngSwitchCase="'Webhook'"> |
|
|
|
|
|
<sqx-webhook-action #actionControl |
|
|
|
|
|
[action]="action" |
|
|
|
|
|
(actionChanged)="selectAction($event)"> |
|
|
|
|
|
</sqx-webhook-action> |
|
|
|
|
|
</ng-container> |
|
|
|
|
|
</ng-container> |
|
|
|
|
|
</ng-container> |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
|
|
|
|
|
|
<ng-container footer> |
|
|
<ng-container footer> |
|
|
<ng-container *ngIf="mode === 'Wizard' && step === 2"> |
|
|
<div> |
|
|
<button type="reset" class="float-left btn btn-secondary" (click)="cancel()">Cancel</button> |
|
|
<ng-container *ngIf="mode === 'Wizard' && step === 2"> |
|
|
<button type="submit" class="float-right btn btn-primary" (click)="triggerControl.save()">Next</button> |
|
|
<button type="reset" class="float-left btn btn-secondary" (click)="cancel()">Cancel</button> |
|
|
</ng-container> |
|
|
<button type="submit" class="float-right btn btn-primary" (click)="saveTrigger()">Next</button> |
|
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
<ng-container *ngIf="mode !== 'Wizard' && step === 2"> |
|
|
<ng-container *ngIf="mode !== 'Wizard' && step === 2"> |
|
|
<button type="reset" class="float-left btn btn-secondary" (click)="cancel()">Cancel</button> |
|
|
<button type="reset" class="float-left btn btn-secondary" (click)="cancel()">Cancel</button> |
|
|
<button type="submit" class="float-right btn btn-primary" (click)="triggerControl.save()">Save</button> |
|
|
<button type="submit" class="float-right btn btn-primary" (click)="saveTrigger()">Save</button> |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
|
|
|
|
|
|
<ng-container *ngIf="step === 4"> |
|
|
<ng-container *ngIf="step === 4"> |
|
|
<button type="reset" class="float-left btn btn-secondary" (click)="cancel()">Cancel</button> |
|
|
<button type="reset" class="float-left btn btn-secondary" (click)="cancel()">Cancel</button> |
|
|
<button type="submit" class="float-right btn btn-primary" (click)="actionControl.save()">Save</button> |
|
|
<button type="submit" class="float-right btn btn-primary" (click)="saveAction()">Save</button> |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
|
|
|
</div> |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
</sqx-modal-dialog> |
|
|
</sqx-modal-dialog> |