This repository was archived by the owner on May 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,9 @@ export class PropertiesGroupModel extends Properties.PropertiesGroupModel {
72
72
} ) ;
73
73
}
74
74
75
- private determineAttributeName ( metadata : Flo . PropertyMetadata ) : string {
75
+ protected determineAttributeName ( metadata : Flo . PropertyMetadata ) : string {
76
76
const nameAttr = `props/${ metadata . name } ` ;
77
77
const idAttr = `props/${ metadata . id } ` ;
78
- if ( this . cell . attr ( 'metadata/group' ) === 'other' ) {
79
- // For something in the other group (like tap) use the id not the name of the property
80
- return idAttr ;
81
- }
82
78
const valueFromName = this . cell . attr ( nameAttr ) ;
83
79
const valueFromId = this . cell . attr ( idAttr ) ;
84
80
if ( ( valueFromName === undefined || valueFromName === null ) && ! ( valueFromId === undefined || valueFromId === null ) ) {
Original file line number Diff line number Diff line change 2
2
3
3
import { Component , ViewEncapsulation } from '@angular/core' ;
4
4
import { BsModalRef } from 'ngx-bootstrap' ;
5
- import { Properties } from 'spring-flo' ;
5
+ import { Flo , Properties } from 'spring-flo' ;
6
6
import { Validators } from '@angular/forms' ;
7
7
import { dia } from 'jointjs' ;
8
8
import { StreamsService } from '../../streams.service' ;
@@ -93,6 +93,15 @@ class StreamPropertiesGroupModel extends PropertiesGroupModel {
93
93
}
94
94
return notationalProperties ;
95
95
}
96
+
97
+ protected determineAttributeName ( metadata : Flo . PropertyMetadata ) : string {
98
+ if ( this . cell . attr ( 'metadata/group' ) === 'other' ) {
99
+ // For something in the other group (like tap) use the id not the name of the property
100
+ return `props/${ metadata . id } ` ;
101
+ }
102
+ return super . determineAttributeName ( metadata ) ;
103
+ }
104
+
96
105
}
97
106
98
107
/**
Original file line number Diff line number Diff line change 2
2
3
3
import { Component , ViewEncapsulation } from '@angular/core' ;
4
4
import { BsModalRef } from 'ngx-bootstrap' ;
5
- import { Properties } from 'spring-flo' ;
5
+ import { Flo , Properties } from 'spring-flo' ;
6
6
import { Validators } from '@angular/forms' ;
7
7
import { dia } from 'jointjs' ;
8
8
import { ApplicationType } from '../../../shared/model/application-type' ;
@@ -56,6 +56,15 @@ class TaskPropertiesGroupModel extends PropertiesGroupModel {
56
56
}
57
57
return notationalProperties ;
58
58
}
59
+
60
+ protected determineAttributeName ( metadata : Flo . PropertyMetadata ) : string {
61
+ if ( this . cell instanceof dia . Link ) {
62
+ // For links properties are always id based
63
+ return `props/${ metadata . id } ` ;
64
+ }
65
+ return super . determineAttributeName ( metadata ) ;
66
+ }
67
+
59
68
}
60
69
61
70
/**
You can’t perform that action at this time.
0 commit comments