Skip to content

Commit f952525

Browse files
committed
list by default
1 parent 86be17c commit f952525

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ qx.Class.define("osparc.file.FolderContent", {
3636

3737
mode: {
3838
check: ["list", "icons"],
39-
init: "icons",
39+
init: "list",
4040
nullable: false,
4141
event: "changeMode",
4242
apply: "__reloadFolderContent"
@@ -80,7 +80,7 @@ qx.Class.define("osparc.file.FolderContent", {
8080
T_POS: {
8181
TYPE: 0,
8282
NAME: 1,
83-
DATE: 2,
83+
MODIFIED_DATE: 2,
8484
SIZE: 3,
8585
ID: 4
8686
}
@@ -105,9 +105,9 @@ qx.Class.define("osparc.file.FolderContent", {
105105
});
106106
control.getTableColumnModel().setDataCellRenderer(this.self().T_POS.TYPE, new qx.ui.table.cellrenderer.Image());
107107
control.setColumnWidth(this.self().T_POS.TYPE, 30);
108-
control.setColumnWidth(this.self().T_POS.NAME, 360);
109-
control.setColumnWidth(this.self().T_POS.DATE, 170);
110-
control.setColumnWidth(this.self().T_POS.SIZE, 70);
108+
control.setColumnWidth(this.self().T_POS.NAME, 250);
109+
control.setColumnWidth(this.self().T_POS.MODIFIED_DATE, 125);
110+
control.setColumnWidth(this.self().T_POS.SIZE, 80);
111111
this.bind("mode", control, "visibility", {
112112
converter: mode => mode === "list" ? "visible" : "excluded"
113113
});

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
qx.Class.define("osparc.file.FolderViewer", {
2323
extend: qx.ui.core.Widget,
2424

25-
construct: function(allowMultiselection = true) {
25+
construct: function(allowMultiSelection = true) {
2626
this.base(arguments);
2727

2828
this._setLayout(new qx.ui.layout.VBox(10));
@@ -33,11 +33,11 @@ qx.Class.define("osparc.file.FolderViewer", {
3333
folderUpBtn.addListener("execute", () => this.fireDataEvent("folderUp", this.getFolder()), this);
3434
this.getChildControl("folder-path");
3535
let multiSelectButton = null;
36-
if (allowMultiselection) {
36+
if (allowMultiSelection) {
3737
multiSelectButton = this.getChildControl("multi-select-button");
3838
}
39-
const gridViewButton = this.getChildControl("view-options-icons");
4039
const listViewButton = this.getChildControl("view-options-list");
40+
const gridViewButton = this.getChildControl("view-options-icons");
4141
const folderContent = this.getChildControl("folder-content");
4242
const selectedFileLayout = this.getChildControl("selected-file-layout");
4343

@@ -51,7 +51,7 @@ qx.Class.define("osparc.file.FolderViewer", {
5151

5252
this.bind("folder", folderContent, "folder");
5353

54-
if (allowMultiselection) {
54+
if (allowMultiSelection) {
5555
multiSelectButton.bind("value", folderContent, "multiSelect");
5656
folderContent.bind("multiSelect", multiSelectButton, "value");
5757
multiSelectButton.addListener("changeValue", e => {
@@ -142,20 +142,20 @@ qx.Class.define("osparc.file.FolderViewer", {
142142
header.addAt(control, 2);
143143
break;
144144
}
145-
case "view-options-rgroup":
145+
case "view-options-radio-group":
146146
control = new qx.ui.form.RadioGroup();
147147
break;
148148
case "view-options-icons": {
149149
control = new qx.ui.form.ToggleButton(null, "@MaterialIcons/apps/18");
150-
const group = this.getChildControl("view-options-rgroup");
150+
const group = this.getChildControl("view-options-radio-group");
151151
group.add(control);
152152
const header = this.getChildControl("header");
153153
header.addAt(control, 3);
154154
break;
155155
}
156156
case "view-options-list": {
157157
control = new qx.ui.form.ToggleButton(null, "@MaterialIcons/reorder/18");
158-
const group = this.getChildControl("view-options-rgroup");
158+
const group = this.getChildControl("view-options-radio-group");
159159
group.add(control);
160160
const header = this.getChildControl("header");
161161
header.addAt(control, 4);

0 commit comments

Comments
 (0)