@@ -112,13 +112,30 @@ export class RPAWorkflowsCtrl extends entitiesCtrl<Base> {
112112 this . basequery = { _type : "workflow" } ;
113113 this . baseprojection = { _type : 1 , type : 1 , name : 1 , _created : 1 , _createdby : 1 , _modified : 1 , projectandname : 1 } ;
114114 this . postloadData = this . processdata ;
115+ if ( this . userdata . data . RPAWorkflowsCtrl ) {
116+ this . basequery = this . userdata . data . RPAWorkflowsCtrl . basequery ;
117+ this . collection = this . userdata . data . RPAWorkflowsCtrl . collection ;
118+ this . baseprojection = this . userdata . data . RPAWorkflowsCtrl . baseprojection ;
119+ this . orderby = this . userdata . data . RPAWorkflowsCtrl . orderby ;
120+ this . searchstring = this . userdata . data . RPAWorkflowsCtrl . searchstring ;
121+ this . basequeryas = this . userdata . data . RPAWorkflowsCtrl . basequeryas ;
122+ }
115123 WebSocketClientService . onSignedin ( ( user : TokenUser ) => {
116124 this . loadData ( ) ;
117125 } ) ;
118126 }
119127 processdata ( ) {
120128 this . loading = true ;
121129 this . loading = false ;
130+ if ( ! this . userdata . data . RPAWorkflowsCtrl ) this . userdata . data . RPAWorkflowsCtrl = { } ;
131+ this . userdata . data . RPAWorkflowsCtrl . basequery = this . basequery ;
132+ this . userdata . data . RPAWorkflowsCtrl . collection = this . collection ;
133+ this . userdata . data . RPAWorkflowsCtrl . baseprojection = this . baseprojection ;
134+ this . userdata . data . RPAWorkflowsCtrl . orderby = this . orderby ;
135+ this . userdata . data . RPAWorkflowsCtrl . searchstring = this . searchstring ;
136+ this . userdata . data . RPAWorkflowsCtrl . basequeryas = this . basequeryas ;
137+ var chart : chartset = null ;
138+ this . loading = false ;
122139 if ( ! this . $scope . $$phase ) { this . $scope . $apply ( ) ; }
123140 this . dographs ( ) ;
124141 }
@@ -210,10 +227,30 @@ export class WorkflowsCtrl extends entitiesCtrl<Base> {
210227 this . collection = "workflow" ;
211228 this . basequery = { _type : "workflow" , web : true } ;
212229 console . debug ( "WorkflowsCtrl" ) ;
230+ this . postloadData = this . processData ;
231+ if ( this . userdata . data . WorkflowsCtrl ) {
232+ this . basequery = this . userdata . data . WorkflowsCtrl . basequery ;
233+ this . collection = this . userdata . data . WorkflowsCtrl . collection ;
234+ this . baseprojection = this . userdata . data . WorkflowsCtrl . baseprojection ;
235+ this . orderby = this . userdata . data . WorkflowsCtrl . orderby ;
236+ this . searchstring = this . userdata . data . WorkflowsCtrl . searchstring ;
237+ this . basequeryas = this . userdata . data . WorkflowsCtrl . basequeryas ;
238+ }
213239 WebSocketClientService . onSignedin ( ( user : TokenUser ) => {
214240 this . loadData ( ) ;
215241 } ) ;
216242 }
243+ async processData ( ) : Promise < void > {
244+ if ( ! this . userdata . data . WorkflowsCtrl ) this . userdata . data . WorkflowsCtrl = { } ;
245+ this . userdata . data . WorkflowsCtrl . basequery = this . basequery ;
246+ this . userdata . data . WorkflowsCtrl . collection = this . collection ;
247+ this . userdata . data . WorkflowsCtrl . baseprojection = this . baseprojection ;
248+ this . userdata . data . WorkflowsCtrl . orderby = this . orderby ;
249+ this . userdata . data . WorkflowsCtrl . searchstring = this . searchstring ;
250+ this . userdata . data . WorkflowsCtrl . basequeryas = this . basequeryas ;
251+ this . loading = false ;
252+ if ( ! this . $scope . $$phase ) { this . $scope . $apply ( ) ; }
253+ }
217254}
218255export class chartset {
219256 options : any = {
@@ -1000,7 +1037,6 @@ export class UsersCtrl extends entitiesCtrl<TokenUser> {
10001037 this . userdata . data . UsersCtrl . orderby = this . orderby ;
10011038 this . userdata . data . UsersCtrl . searchstring = this . searchstring ;
10021039 this . userdata . data . UsersCtrl . basequeryas = this . basequeryas ;
1003- var chart : chartset = null ;
10041040 this . loading = false ;
10051041 if ( ! this . $scope . $$phase ) { this . $scope . $apply ( ) ; }
10061042 }
@@ -3692,7 +3728,6 @@ export class CredentialsCtrl extends entitiesCtrl<Base> {
36923728 this . userdata . data . CredentialsCtrl . orderby = this . orderby ;
36933729 this . userdata . data . CredentialsCtrl . searchstring = this . searchstring ;
36943730 this . userdata . data . CredentialsCtrl . basequeryas = this . basequeryas ;
3695- var chart : chartset = null ;
36963731 this . loading = false ;
36973732 if ( ! this . $scope . $$phase ) { this . $scope . $apply ( ) ; }
36983733 }
0 commit comments