File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed
web-app/projects/main/src/lib/arc-admin Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ export interface FeatureServiceConfig {
88 */
99 url : string
1010
11- /**
12- * Serialized ArcGISIdentityManager
13- */
14- identityManager : string
11+ /**
12+ * Serialized ArcGISIdentityManager
13+ */
14+ identityManager : string
1515
1616 /**
1717 * The feature layers.
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ const arcgisPluginHooks: InitPluginHook<typeof InjectedServices> = {
172172 return {
173173 url : updateService . url ,
174174 layers : updateService . layers ,
175- identityManager : existingService ?. identityManager
175+ identityManager : existingService ?. identityManager || ''
176176 }
177177 } )
178178
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export class ArcAdminComponent implements OnInit {
5757
5858 constructor ( private arcService : ArcService , private dialog : MatDialog , private fb : FormBuilder ) {
5959 this . config = defaultArcGISPluginConfig ;
60- this . editConfig = defaultArcGISPluginConfig ;
60+ this . editConfig = this . copyConfig ( ) ;
6161 this . editFieldMappings = false ;
6262 this . attributesForm = this . fb . group ( {
6363 observationIdField : [ '' ] ,
@@ -79,6 +79,7 @@ export class ArcAdminComponent implements OnInit {
7979 if ( ! this . config . baseUrl ) {
8080 this . config . baseUrl = window . location . origin
8181 }
82+ this . editConfig = this . copyConfig ( ) ;
8283 arcService . fetchPopulatedEvents ( ) . subscribe ( x => this . handleEventResults ( x ) ) ;
8384 } )
8485 }
@@ -192,11 +193,6 @@ export class ArcAdminComponent implements OnInit {
192193 this . saveConfig ( ) ;
193194 }
194195
195- onEditProcessing ( ) {
196- this . editConfig = this . copyConfig ( )
197- this . dialog . open < unknown , unknown , string > ( this . editProcessingTemplate )
198- }
199-
200196 setField ( field : string , value : any ) {
201197 if ( value != undefined && value . length == 0 ) {
202198 value = undefined
You can’t perform that action at this time.
0 commit comments