@@ -197,7 +197,8 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
197
197
this . __setWorkspacesToList ( workspaces ) ;
198
198
if ( this . getCurrentContext ( ) === "trash" ) {
199
199
if ( workspaces . length ) {
200
- this . __header . getChildControl ( "empty-trash-button" ) . show ( ) ;
200
+ // Not yet implemented
201
+ // this.__header.getChildControl("empty-trash-button").show();
201
202
}
202
203
}
203
204
} )
@@ -243,7 +244,8 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
243
244
this . __setFoldersToList ( folders ) ;
244
245
if ( this . getCurrentContext ( ) === "trash" ) {
245
246
if ( folders . length ) {
246
- this . __header . getChildControl ( "empty-trash-button" ) . show ( ) ;
247
+ // Not yet implemented
248
+ // this.__header.getChildControl("empty-trash-button").show();
247
249
}
248
250
}
249
251
} )
@@ -311,7 +313,8 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
311
313
312
314
if ( this . getCurrentContext ( ) === "trash" ) {
313
315
if ( this . _resourcesList . length ) {
314
- this . __header . getChildControl ( "empty-trash-button" ) . show ( ) ;
316
+ // Not yet implemented
317
+ // this.__header.getChildControl("empty-trash-button").show();
315
318
}
316
319
}
317
320
@@ -470,7 +473,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
470
473
osparc . store . Workspaces . getInstance ( ) . trashWorkspace ( workspaceId )
471
474
. then ( ( ) => {
472
475
this . __reloadWorkspaces ( ) ;
473
- const msg = this . tr ( "Successfully moved to Trash " ) ;
476
+ const msg = this . tr ( "Successfully moved to Bin " ) ;
474
477
osparc . FlashMessenger . getInstance ( ) . logAs ( msg , "INFO" ) ;
475
478
this . _resourceFilter . setTrashEmpty ( false ) ;
476
479
} )
@@ -608,7 +611,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
608
611
osparc . store . Folders . getInstance ( ) . trashFolder ( folderId , this . getCurrentWorkspaceId ( ) )
609
612
. then ( ( ) => {
610
613
this . __reloadFolders ( ) ;
611
- const msg = this . tr ( "Successfully moved to Trash " ) ;
614
+ const msg = this . tr ( "Successfully moved to Bin " ) ;
612
615
osparc . FlashMessenger . getInstance ( ) . logAs ( msg , "INFO" ) ;
613
616
this . _resourceFilter . setTrashEmpty ( false ) ;
614
617
} )
@@ -620,11 +623,11 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
620
623
621
624
_trashFolderRequested : function ( folderId ) {
622
625
const trashDays = osparc . store . StaticInfo . getInstance ( ) . getTrashRetentionDays ( ) ;
623
- let msg = this . tr ( "Are you sure you want to move the Folder and all its content to the trash ?" ) ;
626
+ let msg = this . tr ( "Are you sure you want to move the Folder and all its content to the Bin ?" ) ;
624
627
msg += "<br><br>" + this . tr ( "It will be permanently deleted after " ) + trashDays + " days." ;
625
628
const confirmationWin = new osparc . ui . window . Confirmation ( msg ) . set ( {
626
- caption : this . tr ( "Move to Trash " ) ,
627
- confirmText : this . tr ( "Move to Trash " ) ,
629
+ caption : this . tr ( "Move to Bin " ) ,
630
+ confirmText : this . tr ( "Move to Bin " ) ,
628
631
confirmAction : "warning" ,
629
632
} ) ;
630
633
confirmationWin . center ( ) ;
@@ -745,6 +748,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
745
748
delete reqParams [ "type" ] ;
746
749
delete reqParams [ "limit" ] ;
747
750
delete reqParams [ "offset" ] ;
751
+ delete reqParams [ "filters" ] ;
748
752
749
753
const cParams = this . __getRequestParams ( ) ;
750
754
const currentParams = { } ;
@@ -1051,17 +1055,17 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
1051
1055
1052
1056
studiesMoveButton . set ( {
1053
1057
visibility : selection . length && currentContext === "studiesAndFolders" ? "visible" : "excluded" ,
1054
- label : selection . length > 1 ? this . tr ( "Move selected" ) + " (" + selection . length + ")" : this . tr ( "Move" )
1058
+ label : this . tr ( "Move" ) + ( selection . length > 1 ? this . tr ( " selected " ) + `( ${ selection . length } )` : "" ) ,
1055
1059
} ) ;
1056
1060
1057
1061
studiesTrashButton . set ( {
1058
1062
visibility : selection . length && currentContext === "studiesAndFolders" ? "visible" : "excluded" ,
1059
- label : selection . length > 1 ? this . tr ( "Trash selected" ) + " (" + selection . length + ")" : this . tr ( "Trash" )
1063
+ label : this . tr ( "Move to Bin" ) + ( selection . length > 1 ? this . tr ( " selected " ) + `( ${ selection . length } )` : "" ) ,
1060
1064
} ) ;
1061
1065
1062
1066
studiesDeleteButton . set ( {
1063
1067
visibility : selection . length && currentContext === "trash" ? "visible" : "excluded" ,
1064
- label : selection . length > 1 ? this . tr ( "Delete selected" ) + " (" + selection . length + ")" : this . tr ( "Delete" )
1068
+ label : this . tr ( "Delete permamently" ) + ( selection . length > 1 ? this . tr ( " selected " ) + `( ${ selection . length } )` : "" ) ,
1065
1069
} ) ;
1066
1070
} ) ;
1067
1071
@@ -1320,8 +1324,8 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
1320
1324
} ,
1321
1325
1322
1326
__createTrashStudiesButton : function ( ) {
1323
- const trashButton = new qx . ui . form . Button ( this . tr ( "Trash " ) , "@FontAwesome5Solid/trash/14" ) . set ( {
1324
- appearance : "danger -button" ,
1327
+ const trashButton = new qx . ui . form . Button ( this . tr ( "Move to Bin " ) , "@FontAwesome5Solid/trash/14" ) . set ( {
1328
+ appearance : "warning -button" ,
1325
1329
visibility : "excluded"
1326
1330
} ) ;
1327
1331
osparc . utils . Utils . setIdToWidget ( trashButton , "deleteStudiesBtn" ) ;
@@ -1345,7 +1349,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
1345
1349
} ,
1346
1350
1347
1351
__createDeleteStudiesButton : function ( ) {
1348
- const deleteButton = new qx . ui . form . Button ( this . tr ( "Delete" ) , "@FontAwesome5Solid/trash/14" ) . set ( {
1352
+ const deleteButton = new qx . ui . form . Button ( this . tr ( "Delete permanently " ) , "@FontAwesome5Solid/trash/14" ) . set ( {
1349
1353
appearance : "danger-button" ,
1350
1354
visibility : "excluded"
1351
1355
} ) ;
@@ -1828,7 +1832,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
1828
1832
} ,
1829
1833
1830
1834
__getTrashStudyMenuButton : function ( studyData ) {
1831
- const trashButton = new qx . ui . menu . Button ( this . tr ( "Trash " ) , "@FontAwesome5Solid/trash/12" ) ;
1835
+ const trashButton = new qx . ui . menu . Button ( this . tr ( "Move to Bin " ) , "@FontAwesome5Solid/trash/12" ) ;
1832
1836
trashButton [ "trashButton" ] = true ;
1833
1837
trashButton . set ( {
1834
1838
appearance : "menu-button"
@@ -1849,7 +1853,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
1849
1853
} ,
1850
1854
1851
1855
__getDeleteStudyMenuButton : function ( studyData ) {
1852
- const deleteButton = new qx . ui . menu . Button ( this . tr ( "Delete" ) , "@FontAwesome5Solid/trash/12" ) ;
1856
+ const deleteButton = new qx . ui . menu . Button ( this . tr ( "Delete permanently " ) , "@FontAwesome5Solid/trash/12" ) ;
1853
1857
deleteButton [ "deleteButton" ] = true ;
1854
1858
deleteButton . set ( {
1855
1859
appearance : "menu-button"
@@ -2029,7 +2033,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
2029
2033
osparc . store . Store . getInstance ( ) . trashStudy ( studyData . uuid )
2030
2034
. then ( ( ) => {
2031
2035
this . __removeFromStudyList ( studyData . uuid ) ;
2032
- const msg = this . tr ( "Successfully moved to Trash " ) ;
2036
+ const msg = this . tr ( "Successfully moved to Bin " ) ;
2033
2037
osparc . FlashMessenger . getInstance ( ) . logAs ( msg , "INFO" ) ;
2034
2038
this . _resourceFilter . setTrashEmpty ( false ) ;
2035
2039
} )
@@ -2089,12 +2093,12 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
2089
2093
} else {
2090
2094
msg += ` '${ studyNames [ 0 ] } ' ` ;
2091
2095
}
2092
- msg += this . tr ( "to the Trash ?" ) ;
2096
+ msg += this . tr ( "to the Bin ?" ) ;
2093
2097
const trashDays = osparc . store . StaticInfo . getInstance ( ) . getTrashRetentionDays ( ) ;
2094
2098
msg += "<br><br>" + ( studyNames . length > 1 ? "They" : "It" ) + this . tr ( ` will be permanently deleted after ${ trashDays } days.` ) ;
2095
2099
const confirmationWin = new osparc . ui . window . Confirmation ( msg ) . set ( {
2096
- caption : this . tr ( "Move to Trash " ) ,
2097
- confirmText : this . tr ( "Move to Trash " ) ,
2100
+ caption : this . tr ( "Move to Bin " ) ,
2101
+ confirmText : this . tr ( "Move to Bin " ) ,
2098
2102
confirmAction : "warning" ,
2099
2103
} ) ;
2100
2104
osparc . utils . Utils . setIdToWidget ( confirmationWin . getConfirmButton ( ) , "confirmDeleteStudyBtn" ) ;
@@ -2118,7 +2122,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
2118
2122
msg += ( studyNames . length > 1 ? ` ${ studyNames . length } ${ studyAlias } ?` : ` <b>${ studyNames [ 0 ] } </b>?` ) ;
2119
2123
const confirmationWin = new osparc . ui . window . Confirmation ( msg ) . set ( {
2120
2124
caption : this . tr ( "Delete" ) + " " + studyAlias ,
2121
- confirmText : this . tr ( "Delete" ) ,
2125
+ confirmText : this . tr ( "Delete permanently " ) ,
2122
2126
confirmAction : "delete"
2123
2127
} ) ;
2124
2128
osparc . utils . Utils . setIdToWidget ( confirmationWin . getConfirmButton ( ) , "confirmDeleteStudyBtn" ) ;
@@ -2129,7 +2133,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
2129
2133
const msg = this . tr ( "Items in the bin will be permanently deleted" ) ;
2130
2134
const confirmationWin = new osparc . ui . window . Confirmation ( msg ) . set ( {
2131
2135
caption : this . tr ( "Delete" ) ,
2132
- confirmText : this . tr ( "Delete forever " ) ,
2136
+ confirmText : this . tr ( "Delete permanently " ) ,
2133
2137
confirmAction : "delete"
2134
2138
} ) ;
2135
2139
return confirmationWin ;
0 commit comments