Skip to content

Commit ac60baf

Browse files
committed
select study
1 parent ecbbe87 commit ac60baf

File tree

1 file changed

+6
-2
lines changed
  • services/static-webserver/client/source/class/osparc/file

1 file changed

+6
-2
lines changed

services/static-webserver/client/source/class/osparc/file/FilesTree.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ qx.Class.define("osparc.file.FilesTree", {
163163
}
164164
studyModel = this.getModel();
165165
this.__filesToDataset("0", studyId, files, studyModel);
166+
167+
// select study item
168+
this.setSelection(new qx.data.Array([studyModel]));
169+
this.__selectionChanged();
166170
});
167171
},
168172

@@ -189,8 +193,8 @@ qx.Class.define("osparc.file.FilesTree", {
189193
}
190194
this.openNode(rootNodeModel);
191195

192-
const selected = new qx.data.Array([rootNodeModel]);
193-
this.setSelection(selected);
196+
// select node item
197+
this.setSelection(new qx.data.Array([rootNodeModel]));
194198
this.__selectionChanged();
195199
} else {
196200
rootModel.getChildren().removeAll();

0 commit comments

Comments
 (0)