@@ -20,6 +20,7 @@ export type CompasSettingsRecord = {
20
20
sclValidatorServiceUrl : string ;
21
21
cimMappingServiceUrl : string ;
22
22
sclAutoAlignmentServiceUrl : string ;
23
+ sitipeServiceUrl : string ;
23
24
useWebsockets : 'on' | 'off' ;
24
25
} ;
25
26
@@ -34,6 +35,7 @@ export function CompasSettings() {
34
35
sclAutoAlignmentServiceUrl : this . getCompasSetting (
35
36
'sclAutoAlignmentServiceUrl'
36
37
) ,
38
+ sitipeServiceUrl : this . getCompasSetting ( 'sitipeServiceUrl' ) ,
37
39
useWebsockets : this . getCompasSetting ( 'useWebsockets' ) ,
38
40
} ;
39
41
} ,
@@ -44,6 +46,7 @@ export function CompasSettings() {
44
46
sclValidatorServiceUrl : '/compas-scl-validator' ,
45
47
cimMappingServiceUrl : '/compas-cim-mapping' ,
46
48
sclAutoAlignmentServiceUrl : '/compas-scl-auto-alignment' ,
49
+ sitipeServiceUrl : '/compas-sitipe-service' ,
47
50
useWebsockets : 'on' ,
48
51
} ;
49
52
} ,
@@ -106,6 +109,12 @@ export class CompasSettingsElement extends LitElement {
106
109
) ;
107
110
}
108
111
112
+ getSitipeServiceUrlField ( ) : TextFieldBase {
113
+ return < TextFieldBase > (
114
+ this . shadowRoot ! . querySelector ( 'mwc-textfield[id="sitipeServiceUrl"]' )
115
+ ) ;
116
+ }
117
+
109
118
getUseWebsockets ( ) : Switch {
110
119
return < Switch > (
111
120
this . shadowRoot ! . querySelector ( 'mwc-switch[id="useWebsockets"]' )
@@ -117,7 +126,8 @@ export class CompasSettingsElement extends LitElement {
117
126
this . getSclDataServiceUrlField ( ) . checkValidity ( ) &&
118
127
this . getSclValidatorServiceUrlField ( ) . checkValidity ( ) &&
119
128
this . getCimMappingServiceUrlField ( ) . checkValidity ( ) &&
120
- this . getSclAutoAlignmentServiceUrlField ( ) . checkValidity ( )
129
+ this . getSclAutoAlignmentServiceUrlField ( ) . checkValidity ( ) &&
130
+ this . getSitipeServiceUrlField ( ) . checkValidity ( )
121
131
) ;
122
132
}
123
133
@@ -143,6 +153,10 @@ export class CompasSettingsElement extends LitElement {
143
153
'sclAutoAlignmentServiceUrl' ,
144
154
this . getSclAutoAlignmentServiceUrlField ( ) . value
145
155
) ;
156
+ CompasSettings ( ) . setCompasSetting (
157
+ 'sitipeServiceUrl' ,
158
+ this . getSitipeServiceUrlField ( ) . value
159
+ ) ;
146
160
CompasSettings ( ) . setCompasSetting (
147
161
'useWebsockets' ,
148
162
this . getUseWebsockets ( ) . checked ? 'on' : 'off'
@@ -193,6 +207,13 @@ export class CompasSettingsElement extends LitElement {
193
207
required
194
208
>
195
209
</ mwc- textfield>
210
+ <mwc- textfield
211
+ id= "sitipeServiceUrl"
212
+ label = "${ translate ( 'compas.settings.sitipeServiceUrl' ) } "
213
+ value = "${ this . compasSettings . sitipeServiceUrl } "
214
+ required
215
+ >
216
+ </ mwc- textfield>
196
217
<mwc- for mfield label= "${ translate ( 'compas.settings.useWebsockets' ) } " >
197
218
<mwc- switch
198
219
id= "useWebsockets"
0 commit comments