@@ -199,7 +199,7 @@ dispUseCases(ctx:string) {
199
199
useCaseCardComponent . setSelectionState ( true , selectedIndex ) ;
200
200
console . log ( 'Found card 0 ' + useCaseCardsAry [ i ] . constructor . name ) ;
201
201
console . log ( 'Found card: ' + i + ' : ' + useCaseCardsAry [ i ] . getName ( ) ) ;
202
- break ;
202
+ //2020-11-06 break;
203
203
}
204
204
}
205
205
console . log ( "after ary" ) ;
@@ -229,7 +229,10 @@ dispUseCases(ctx:string) {
229
229
230
230
this . useCaseService . currentWorkload . subscribe ( workloadObj => {
231
231
232
- /** The following works......however.
232
+ /**
233
+ * Refresh the checkbox/combobox selection with the newly applied WorkloadKey -- a text one.
234
+ *
235
+ * The following works......however.
233
236
* when checkboxes are changed, then the following executes UNNECESSARILY.
234
237
* Without this load() call, the new workload paints/renders/displays just fine.
235
238
*
@@ -241,8 +244,17 @@ dispUseCases(ctx:string) {
241
244
* when the workloadKey(aka text) changes, set the dirty flag.....
242
245
* and only execute this load() when the dirty flag is set.
243
246
* .....and of course reset the dirty() flag when it is detected.
247
+ *
248
+ * ....or perhaps (and of course this is the right way) make a custom service specifically for:
249
+ * - clearTextWorkloadChange()
250
+ * - encryptedTextWorkloadChange()
251
+ *
244
252
*/
245
- this . load ( ) ;
253
+ if ( workloadObj . origin == 1 )
254
+ //calling load() with origin==0 causes unnecessary and irritating page reload
255
+ this . load ( ) ;
256
+ //this.reSetUseCaseSelection(workloadObj);
257
+
246
258
}
247
259
) ;
248
260
0 commit comments