@@ -13,7 +13,6 @@ export type CompasSettingsRecord = {
13
13
sclValidatorServiceUrl : string ;
14
14
cimMappingServiceUrl : string ;
15
15
sclAutoAlignmentServiceUrl : string ;
16
- importFromApiUrl : string ;
17
16
} ;
18
17
19
18
export function CompasSettings ( ) {
@@ -24,8 +23,7 @@ export function CompasSettings() {
24
23
sclDataServiceUrl : this . getCompasSetting ( 'sclDataServiceUrl' ) ,
25
24
sclValidatorServiceUrl : this . getCompasSetting ( 'sclValidatorServiceUrl' ) ,
26
25
cimMappingServiceUrl : this . getCompasSetting ( 'cimMappingServiceUrl' ) ,
27
- sclAutoAlignmentServiceUrl : this . getCompasSetting ( 'sclAutoAlignmentServiceUrl' ) ,
28
- importFromApiUrl : this . getCompasSetting ( 'importFromApiUrl' ) ,
26
+ sclAutoAlignmentServiceUrl : this . getCompasSetting ( 'sclAutoAlignmentServiceUrl' )
29
27
} ;
30
28
} ,
31
29
@@ -34,8 +32,7 @@ export function CompasSettings() {
34
32
sclDataServiceUrl : '/compas-scl-data-service' ,
35
33
sclValidatorServiceUrl : '/compas-scl-validator' ,
36
34
cimMappingServiceUrl : '/compas-cim-mapping' ,
37
- sclAutoAlignmentServiceUrl : '/compas-scl-auto-alignment' ,
38
- importFromApiUrl : '/public/cim'
35
+ sclAutoAlignmentServiceUrl : '/compas-scl-auto-alignment'
39
36
}
40
37
} ,
41
38
@@ -75,16 +72,11 @@ export class CompasSettingsElement extends LitElement {
75
72
return < TextFieldBase > this . shadowRoot ! . querySelector ( 'mwc-textfield[id="sclAutoAlignmentServiceUrl"]' ) ;
76
73
}
77
74
78
- getImportFromApiUrlField ( ) : TextFieldBase {
79
- return < TextFieldBase > this . shadowRoot ! . querySelector ( 'mwc-textfield[id="importFromApiUrl"]' ) ;
80
- }
81
-
82
75
valid ( ) : boolean {
83
76
return this . getSclDataServiceUrlField ( ) . checkValidity ( )
84
77
&& this . getSclValidatorServiceUrlField ( ) . checkValidity ( )
85
78
&& this . getCimMappingServiceUrlField ( ) . checkValidity ( )
86
- && this . getSclAutoAlignmentServiceUrlField ( ) . checkValidity ( )
87
- && this . getImportFromApiUrlField ( ) . checkValidity ( ) ;
79
+ && this . getSclAutoAlignmentServiceUrlField ( ) . checkValidity ( ) ;
88
80
}
89
81
90
82
save ( ) : boolean {
@@ -97,7 +89,6 @@ export class CompasSettingsElement extends LitElement {
97
89
CompasSettings ( ) . setCompasSetting ( 'sclValidatorServiceUrl' , this . getSclValidatorServiceUrlField ( ) . value ) ;
98
90
CompasSettings ( ) . setCompasSetting ( 'cimMappingServiceUrl' , this . getCimMappingServiceUrlField ( ) . value ) ;
99
91
CompasSettings ( ) . setCompasSetting ( 'sclAutoAlignmentServiceUrl' , this . getSclAutoAlignmentServiceUrlField ( ) . value ) ;
100
- CompasSettings ( ) . setCompasSetting ( 'importFromApiUrl' , this . getImportFromApiUrlField ( ) . value ) ;
101
92
return true ;
102
93
}
103
94
@@ -131,10 +122,6 @@ export class CompasSettingsElement extends LitElement {
131
122
label = "${ translate ( 'compas.settings.sclAutoAlignmentServiceUrl' ) } "
132
123
value = "${ this . compasSettings . sclAutoAlignmentServiceUrl } " required >
133
124
</ mwc- textfield>
134
- <mwc- textfield id= "importFromApiUrl"
135
- label = "${ translate ( 'compas.settings.importFromApiUrl' ) } "
136
- value = "${ this . compasSettings . importFromApiUrl } " required >
137
- </ mwc- textfield>
138
125
139
126
<mwc- butto n @click = ${ ( ) => {
140
127
if ( this . reset ( ) ) {
0 commit comments