File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ def testGetDockerImage(self):
216
216
resp = self .request (
217
217
path = '/HistomicsTK/HistomicsTK/docker_image' ,
218
218
user = self .admin , method = 'PUT' ,
219
- params = {'name' : '"girder/slicer_cli_web:small"' })
219
+ params = {'name' : '"girder/slicer_cli_web:small-2.x "' })
220
220
self .assertStatusOk (resp )
221
221
endTime = time .time () + 180 # maxTimeout
222
222
while time .time () < endTime :
Original file line number Diff line number Diff line change @@ -108,17 +108,20 @@ var SaveAnnotation = View.extend({
108
108
// all valid
109
109
110
110
if ( setFillColor || setLineColor || setLineWidth ) {
111
- this . annotation . get ( 'annotation' ) . elements . forEach ( ( element ) => {
111
+ this . annotation . elements ( ) . each ( ( element ) => { /* eslint-disable backbone/no-silent */
112
112
if ( setFillColor ) {
113
- element . fillColor = fillColor ;
113
+ element . set ( ' fillColor' , fillColor , { silent : true } ) ;
114
114
}
115
115
if ( setLineColor ) {
116
- element . lineColor = lineColor ;
116
+ element . set ( ' lineColor' , lineColor , { silent : true } ) ;
117
117
}
118
118
if ( setLineWidth ) {
119
- element . lineWidth = lineWidth ;
119
+ element . set ( ' lineWidth' , lineWidth , { silent : true } ) ;
120
120
}
121
121
} ) ;
122
+ const annotationData = _ . extend ( { } , this . annotation . get ( 'annotation' ) ) ;
123
+ annotationData . elements = this . annotation . elements ( ) . toJSON ( ) ;
124
+ this . annotation . set ( 'annotation' , annotationData ) ;
122
125
}
123
126
124
127
_ . extend ( this . annotation . get ( 'annotation' ) , {
You can’t perform that action at this time.
0 commit comments