@@ -57,7 +57,7 @@ <h2 class="card--title">Connector types</h2>
57
57
class ="connector-image "> </ div >
58
58
{{ connectorMetadata.get(connectorType)?.displayName }} < span class ="type "> ({{ connectorType }})</ span >
59
59
< button (click) ="copyToAddConnector(connectorType) "
60
- class ="button-trans--green mdl-js-button mdl-js-ripple-effect ">
60
+ class ="button-trans--green mdl-js-button mdl-js-ripple-effect mdl-button--icon ">
61
61
< i class ="material-icons "> add</ i >
62
62
</ button >
63
63
< ul class ="typeList ">
@@ -121,7 +121,7 @@ <h2 class="card--title">Plugin types</h2>
121
121
< ul class ="typeList ">
122
122
< li *ngFor ="let pluginType of pluginTypes "> {{ pluginType.name }} ({{pluginType.author}})
123
123
< button (click) ="copyToAddPlugin(pluginType.name, pluginType.author) "
124
- class ="button-trans--green mdl-js-button mdl-js-ripple-effect ">
124
+ class ="button-trans--green mdl-js-button mdl-js-ripple-effect mdl-button--icon ">
125
125
< i class ="material-icons "> add</ i >
126
126
</ button >
127
127
</ li >
@@ -145,13 +145,33 @@ <h2 class="mdl-card__title-text">Connectors</h2>
145
145
</ button >
146
146
</ div >
147
147
< ul >
148
- < li *ngFor ="let connectorKey of connectorKeys "> {{connectorKey .sourceIdentifier}}
149
- < button class =" button-trans--teal mdl-js-button mdl-js-ripple-effect "
150
- (click) =" copyConnectorData(connectorKey) ">
151
- < i class ="material-icons "> edit</ i >
148
+ < li *ngFor ="let connectorEntry of connectorData "> {{connectorEntry .sourceIdentifier}}
149
+ < button (click) =" copyConnectorData(connectorEntry) "
150
+ class =" button-trans--teal mdl-js-button mdl-js-ripple-effect mdl-button--icon ">
151
+ < i class ="material-icons material-li "> edit</ i >
152
152
</ button >
153
153
< ul >
154
- < li > {{connectorKey.qualifiedConnectorType}}</ li >
154
+ < li > {{connectorEntry.qualifiedConnectorType}}</ li >
155
+ < li >
156
+ < a (click) ="getConnectorDetails(connectorEntry) " *ngIf ="connectorEntry.details == null "
157
+ class ="pointer "> Request details...</ a >
158
+ < p *ngIf ="connectorEntry.details != null "> Running: {{ connectorEntry.details.isRunning }} - Credentials:
159
+ < u *ngFor ="let cred of connectorEntry.details.requiredCredentialKeys "> {{ cred }}
160
+ < button
161
+ (click) ="copyCredentials(connectorEntry.qualifiedConnectorType, connectorEntry.sourceIdentifier, cred) "
162
+ class ="button-trans--teal mdl-js-button mdl-js-ripple-effect mdl-button--icon ">
163
+ < i class ="material-icons material-li "> edit</ i >
164
+ </ button >
165
+ </ u >
166
+ < span
167
+ *ngFor ="let optionalCred of connectorEntry.details.optionalCredentialKeys "> {{ optionalCred}}
168
+ < button
169
+ (click) ="copyCredentials(connectorEntry.qualifiedConnectorType, connectorEntry.sourceIdentifier, optionalCred) "
170
+ class ="button-trans--teal mdl-js-button mdl-js-ripple-effect mdl-button--icon ">
171
+ < i class ="material-icons material-li "> edit</ i >
172
+ </ button > </ span >
173
+ </ p >
174
+ </ li >
155
175
</ ul >
156
176
</ li >
157
177
</ ul >
@@ -214,14 +234,16 @@ <h2 class="card--title">Manage credentials</h2>
214
234
#mcrConnectorType [(ngModel)] ="mcrConnectorTypeValue "/>
215
235
< label class ="mdl-textfield__label " for ="manageCredentialsConnectorType "> Connector type</ label >
216
236
</ div >
217
- < div class ="container--text mdl-js-textfield ">
237
+ < div [class.is-dirty] ="mcrKeyValue.length > 0 "
238
+ class ="container--text mdl-js-textfield ">
218
239
< input class ="mdl-textfield__input " type ="text " id ="manageCredentialsKey " value =""
219
- #mcrKey />
240
+ #mcrKey [(ngModel)] =" mcrKeyValue " />
220
241
< label class ="mdl-textfield__label " for ="manageCredentialsKey "> Key</ label >
221
242
</ div >
222
- < div class ="container--text mdl-js-textfield ">
243
+ < div [class.is-dirty] ="mcrValueValue.length > 0 "
244
+ class ="container--text mdl-js-textfield ">
223
245
< input class ="mdl-textfield__input " type ="text " id ="manageCredentialsValue " value =""
224
- #mcrValue />
246
+ #mcrValue [(ngModel)] =" mcrValueValue " />
225
247
< label class ="mdl-textfield__label " for ="manageCredentialsValue "> Value</ label >
226
248
</ div >
227
249
< div class ="manageButtons ">
@@ -266,7 +288,7 @@ <h2 class="card--title">Plugin instances</h2>
266
288
[class.button--colored-orange] ="!instance.isRunning "
267
289
[class.button--colored-green] ="instance.isRunning "
268
290
(click) ="copyInstanceData(instance) ">
269
- < i class ="material-icons "> edit</ i >
291
+ < i class ="material-icons material-li "> edit</ i >
270
292
</ button >
271
293
< ul >
272
294
< li > {{ instance.pluginName }} ({{ instance.pluginAuthor }})</ li >
@@ -304,7 +326,8 @@ <h2 class="card--title">Start / Stop / Log</h2>
304
326
Show log
305
327
</ button >
306
328
</ div >
307
- < div #instanceLog id ="instanceLog " style ="white-space: pre-wrap " *ngIf ="instanceLogOutput?.length > 0 "> {{ instanceLogOutput.join("\n") }}</ div >
329
+ < div #instanceLog *ngIf ="instanceLogOutput?.length > 0 " id ="instanceLog "
330
+ style ="white-space: pre-wrap "> {{ instanceLogOutput.join("\n") }}</ div >
308
331
</ base-card-body >
309
332
</ base-card >
310
333
</ div >
@@ -369,9 +392,9 @@ <h2 class="card--title">Instance requirements</h2>
369
392
< ul >
370
393
< li *ngFor ="let requirement of instanceRequirements ">
371
394
{{requirement.uniqueRequirementId}} ({{requirement.name}})
372
- < button class ="button-trans--teal mdl-js-button mdl-js-ripple-effect "
395
+ < button class ="button-trans--teal mdl-js-button mdl-js-ripple-effect mdl-button--icon "
373
396
(click) ="copyRequirementData(requirement, requirementsInstanceName.value) ">
374
- < i class ="material-icons "> edit</ i >
397
+ < i class ="material-icons material-li "> edit</ i >
375
398
</ button >
376
399
< ul >
377
400
< li > optional: {{requirement.isOptional}} - set: {{requirement.isSet}}</ li >
@@ -415,17 +438,17 @@ <h2 class="card--title">Change requirement</h2>
415
438
< label class ="mdl-textfield__label " for ="changeReqValue "> Value</ label >
416
439
</ div >
417
440
418
- < div class ="manageButtons ">
419
- < button class =" button--green mdl-js-button mdl-js-ripple-effect "
420
- (click) =" setRequirement(changeReqInstanceName .value, changeReqID .value,
421
- changeReqType.value, changeReqValue.value) ">
422
- PUT
423
- </ button >
424
- < button class =" button--red mdl-js-button mdl-js-ripple-effect "
425
- (click) =" removeRequirement(changeReqInstanceName.value, changeReqID.value) ">
426
- DELETE
427
- </ button >
428
- </ div >
441
+ < div class ="manageButtons ">
442
+ < button (click) =" setRequirement(changeReqInstanceName.value, changeReqID.value,
443
+ changeReqType .value, changeReqValue .value) "
444
+ class =" button--green mdl-js-button mdl-js-ripple-effect ">
445
+ PUT
446
+ </ button >
447
+ < button (click) =" removeRequirement(changeReqInstanceName.value, changeReqID.value) "
448
+ class =" button--red mdl-js-button mdl-js-ripple-effect ">
449
+ DELETE
450
+ </ button >
451
+ </ div >
429
452
</ div >
430
453
</ base-card-body >
431
454
</ base-card >
0 commit comments