Skip to content

Commit d2bb386

Browse files
committed
renaming
1 parent 21fece7 commit d2bb386

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,17 @@ qx.Class.define("osparc.file.FilesTree", {
152152
this.self().addLoadingChild(studyModel);
153153

154154
const dataStore = osparc.store.Data.getInstance();
155-
return dataStore.getFilesByLocationAndDataset("0", studyId)
155+
return dataStore.getPathByLocationAndDataset("0", studyId)
156156
.then(data => {
157157
const {
158-
files
158+
items
159159
} = data;
160160

161-
if (files.length && "project_name" in files[0]) {
162-
this.__resetTree(files[0]["project_name"]);
161+
if (items.length && "project_name" in items[0]) {
162+
this.__resetTree(items[0]["project_name"]);
163163
}
164164
studyModel = this.getModel();
165-
this.__filesToDataset("0", studyId, files, studyModel);
165+
this.__filesToDataset("0", studyId, items, studyModel);
166166

167167
// select study item
168168
this.setSelection(new qx.data.Array([studyModel]));
@@ -382,12 +382,12 @@ qx.Class.define("osparc.file.FilesTree", {
382382
}
383383

384384
const dataStore = osparc.store.Data.getInstance();
385-
return dataStore.getFilesByLocationAndDataset(locationId, datasetId)
385+
return dataStore.getPathByLocationAndDataset(locationId, datasetId)
386386
.then(data => {
387387
const {
388-
files
388+
items
389389
} = data;
390-
this.__filesToDataset(locationId, datasetId, files);
390+
this.__filesToDataset(locationId, datasetId, items);
391391
});
392392
},
393393

services/static-webserver/client/source/class/osparc/store/Data.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ qx.Class.define("osparc.store.Data", {
120120
});
121121
},
122122

123-
getFilesByLocationAndDataset: function(locationId, datasetId) {
123+
getPathByLocationAndDataset: function(locationId, datasetId) {
124124
const data = {
125125
locationId,
126126
datasetId,
127-
files: []
127+
items: []
128128
};
129129
return new Promise((resolve, reject) => {
130130
// Get list of file meta data
@@ -141,7 +141,7 @@ qx.Class.define("osparc.store.Data", {
141141
osparc.data.Resources.fetch("storagePaths", "getPaths", params)
142142
.then(pagResp => {
143143
if (pagResp["items"] && pagResp["items"].length>0) {
144-
data.files = pagResp["items"];
144+
data.items = pagResp["items"];
145145
}
146146
resolve(data);
147147
})

0 commit comments

Comments
 (0)