Skip to content

Commit b2d4078

Browse files
committed
minor
1 parent 1fa6213 commit b2d4078

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

services/static-webserver/client/source/class/osparc/dashboard/FileButtonItem.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ qx.Class.define("osparc.dashboard.FileButtonItem", {
5656
title: {
5757
check: "String",
5858
nullable: true,
59-
apply: "__applyTitle"
59+
apply: "__applyTitle",
6060
},
6161

62-
lastModified: {
62+
modifiedAt: {
6363
check: "Date",
6464
nullable: true,
65-
apply: "__applyLastModified"
65+
apply: "__applyModifiedAt",
6666
},
6767
},
6868

@@ -111,14 +111,15 @@ qx.Class.define("osparc.dashboard.FileButtonItem", {
111111
},
112112

113113
__applyFile: function(file) {
114+
const id = file.getPath();
114115
this.getChildControl("icon");
115116
this.set({
116-
cardKey: "file-" + file.getFileId()
117+
cardKey: "file-" + id,
117118
});
118119
file.bind("name", this, "title");
119-
file.bind("lastModified", this, "lastModified");
120+
file.bind("modifiedAt", this, "modifiedAt");
120121

121-
osparc.utils.Utils.setIdToWidget(this, "fileItem_" + file.getFileId());
122+
osparc.utils.Utils.setIdToWidget(this, "fileItem_" + id);
122123

123124
this.__addMenuButton();
124125
},
@@ -131,7 +132,7 @@ qx.Class.define("osparc.dashboard.FileButtonItem", {
131132
});
132133
},
133134

134-
__applyLastModified: function(value) {
135+
__applyModifiedAt: function(value) {
135136
if (value) {
136137
const dateBy = this.getChildControl("date-by");
137138
dateBy.set({

0 commit comments

Comments
 (0)