1
+ < div class ="modal fade in " id ="cosmos-picker " >
2
+ < div class ="modal-dialog modal-lg ">
3
+ < div class ="modal-content ">
4
+ < div class ="modal-header ">
5
+ < button type ="button " class ="close " data-dismiss ="modal " aria-hidden ="true " (click) ="onClose() "> ×</ button >
6
+ < label > {{'eventHubPicker_connection' | translate}} </ label >
7
+ </ div >
8
+ < div class ="modal-body " style ="display: flex;flex-direction:column; ">
9
+ < div style ="margin-bottom: 10px; ">
10
+ < radio-selector [options] ="options " [defaultValue] ="optionTypes.cosmosDB " (value) ="optionsChange.next($event) "> </ radio-selector >
11
+ </ div >
12
+
13
+ < div *ngIf ="option === optionTypes.cosmosDB " class ="line ">
14
+ < div class ="select-container ">
15
+ < label > {{'subscriptionName' | translate}}</ label >
16
+ < div *ngIf ="subscriptions?.length == 0 " class ="text-label "> {{'notFound' | translate}}</ div >
17
+ < i *ngIf ="!subscriptions " class ="fa fa-refresh fa-spin fa-fw margin-bottom "> </ i >
18
+ < select *ngIf ="subscriptions?.length > 0 " (change) ="onChangeSubscription($event.target.value) " [(ngModel)] ="selectedSubscription ">
19
+ < option *ngFor ="let item of subscriptions " [value] ="item.value.subscriptionId "> {{item.displayLabel}}</ option >
20
+ </ select >
21
+ </ div >
22
+ < div *ngIf ="selectedSubscription " class ="select-container ">
23
+ < label > {{'databaseAccount' | translate}}</ label >
24
+ < div *ngIf ="databases?.value.length == 0 " class ="text-label "> {{'notFound' | translate}}</ div >
25
+ < i *ngIf ="!databases?.value " class ="fa fa-refresh fa-spin fa-fw margin-bottom "> </ i >
26
+ < select *ngIf ="databases?.value?.length > 0 " [(ngModel)] ="selectedDatabase ">
27
+ < option *ngFor ="let item of databases.value " [value] ="item.id "> {{item.name}}</ option >
28
+ </ select >
29
+ </ div >
30
+ </ div >
31
+
32
+ < div *ngIf ="option === optionTypes.custom ">
33
+ < div class ="input-container ">
34
+ < label > {{'eventHubPicker_appSettingName' | translate}}</ label >
35
+ < div >
36
+ < input type ="text " (keyup) ="setSelect() " [(ngModel)] ="appSettingName " />
37
+ </ div >
38
+ </ div >
39
+ < div class ="input-container ">
40
+ < label > {{'eventHubPicker_appSettingValue' | translate}}</ label >
41
+ < div >
42
+ < input type ="text " (keyup) ="setSelect() " [(ngModel)] ="appSettingValue " />
43
+ </ div >
44
+ </ div >
45
+ </ div >
46
+
47
+ < div class ="button-conainer ">
48
+ < button *ngIf ="!selectInProcess "
49
+ (click) ="onSelect() "
50
+ [disabled] ="!canSelect "
51
+ class ="custom-button ">
52
+
53
+ < ng-container *ngIf ="option !== optionTypes.custom "> {{ 'select' | translate }}</ ng-container >
54
+ < ng-container *ngIf ="option === optionTypes.custom "> {{ 'create' | translate }}</ ng-container >
55
+ </ button >
56
+ < i *ngIf ="selectInProcess " class ="fa fa-refresh fa-spin fa-fw margin-bottom button-spin "> </ i >
57
+ </ div >
58
+ </ div >
59
+ </ div >
60
+ </ div >
61
+ </ div >
62
+
63
+ < div class ="modal-backdrop fade in "> </ div >
0 commit comments