/
stream-deploy.component.html
49 lines (46 loc) · 2.47 KB
/
stream-deploy.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<app-page *ngIf="config$ | async as config; else loading">
<app-page-head>
<app-page-head-back [defaultUrl]="'/streams/definitions'"></app-page-head-back>
<app-page-head-title *ngIf="!isDeployed(config.streamDefinition)">Deploy Stream Definition
<strong>{{ config.id }}</strong></app-page-head-title>
<app-page-head-title *ngIf="isDeployed(config.streamDefinition)">Update Stream Definition
<strong>{{ config.id }}</strong></app-page-head-title>
</app-page-head>
<div class="page-tab">
<div class="page-tab-head">
<div class="page-tab-head-content">
<p>
Please specify any <strong>optional</strong> deployment properties.
You can either use the builder. <br>Alternatively, you can point to an external <strong>properties
file</strong> containing the deployment properties. For more information please see the
<a
href="https://docs.spring.io/spring-cloud-dataflow/docs/current-SNAPSHOT/reference/htmlsingle/#_passing_application_properties_when_deploying_stream"
target="_blank">Technical Documentation</a>.
</p>
</div>
<ul class="nav nav-tabs">
<li [class.active]="state.view == 'builder'"><a (click)="state.view = 'builder'">Builder</a></li>
<li [class.active]="state.view == 'freetext'"><a (click)="state.view = 'freetext'">Freetext</a></li>
</ul>
</div>
<div class="tab-pane" dataflowLayoutType type="full">
<div *ngIf="state.view == 'builder'">
<app-stream-deploy-builder [properties]="properties" [id]="config.id"
[isDeployed]="isDeployed(config.streamDefinition)"
(exportProperties)="runExport($event)" (update)="update($event)"
(deploy)="runDeploy($event)" (copyProperties)="runCopy($event)">
</app-stream-deploy-builder>
</div>
<div *ngIf="state.view == 'freetext'">
<app-stream-deploy-free-text [properties]="properties" (update)="update($event)" [id]="config.id"
[isDeployed]="isDeployed(config.streamDefinition)"
(exportProperties)="runExport($event)" (update)="update($event)"
(deploy)="runDeploy($event)" (copyProperties)="runCopy($event)">
</app-stream-deploy-free-text>
</div>
</div>
</div>
</app-page>
<ng-template #loading>
<app-loader></app-loader>
</ng-template>