File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
services/static-webserver/client/source/class/osparc/file Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ qx.Class.define("osparc.file.FolderContent", {
7878 return item ;
7979 } ,
8080
81+ getIcon : function ( entry ) {
82+ return osparc . file . FilesTree . isDir ( entry ) ? "@MaterialIcons/folder" : "@MaterialIcons/insert_drive_file" ;
83+ } ,
84+
8185 T_POS : {
8286 TYPE : 0 ,
8387 NAME : 1 ,
@@ -136,7 +140,7 @@ qx.Class.define("osparc.file.FolderContent", {
136140 const datas = [ ] ;
137141 children . forEach ( child => {
138142 const data = {
139- icon : child . getIcon ? child . getIcon ( ) : this . __getIcon ( child ) ,
143+ icon : child . getIcon ? child . getIcon ( ) : this . self ( ) . getIcon ( child ) ,
140144 label : child . getLabel ( ) ,
141145 lastModified : child . getLastModified ? osparc . utils . Utils . formatDateAndTime ( new Date ( child . getLastModified ( ) ) ) : "" ,
142146 size : child . getSize ? osparc . utils . Utils . bytesToSize ( child . getSize ( ) ) : "" ,
@@ -192,10 +196,6 @@ qx.Class.define("osparc.file.FolderContent", {
192196 return items ;
193197 } ,
194198
195- __getIcon : function ( entry ) {
196- return osparc . file . FilesTree . isDir ( entry ) ? "@MaterialIcons/folder" : "@MaterialIcons/insert_drive_file" ;
197- } ,
198-
199199 __getEntries : function ( ) {
200200 if ( this . getFolder ( ) ) {
201201 const children = this . getFolder ( ) . getChildren ( ) . toArray ( ) ;
You can’t perform that action at this time.
0 commit comments