@@ -197,7 +197,8 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
197197 this . __setWorkspacesToList ( workspaces ) ;
198198 if ( this . getCurrentContext ( ) === "trash" ) {
199199 if ( workspaces . length ) {
200- this . __header . getChildControl ( "empty-trash-button" ) . show ( ) ;
200+ // Not yet implemented
201+ // this.__header.getChildControl("empty-trash-button").show();
201202 }
202203 }
203204 } )
@@ -243,7 +244,8 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
243244 this . __setFoldersToList ( folders ) ;
244245 if ( this . getCurrentContext ( ) === "trash" ) {
245246 if ( folders . length ) {
246- this . __header . getChildControl ( "empty-trash-button" ) . show ( ) ;
247+ // Not yet implemented
248+ // this.__header.getChildControl("empty-trash-button").show();
247249 }
248250 }
249251 } )
@@ -311,7 +313,8 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
311313
312314 if ( this . getCurrentContext ( ) === "trash" ) {
313315 if ( this . _resourcesList . length ) {
314- this . __header . getChildControl ( "empty-trash-button" ) . show ( ) ;
316+ // Not yet implemented
317+ // this.__header.getChildControl("empty-trash-button").show();
315318 }
316319 }
317320
@@ -470,7 +473,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
470473 osparc . store . Workspaces . getInstance ( ) . trashWorkspace ( workspaceId )
471474 . then ( ( ) => {
472475 this . __reloadWorkspaces ( ) ;
473- const msg = this . tr ( "Successfully moved to Trash " ) ;
476+ const msg = this . tr ( "Successfully moved to Bin " ) ;
474477 osparc . FlashMessenger . getInstance ( ) . logAs ( msg , "INFO" ) ;
475478 this . _resourceFilter . setTrashEmpty ( false ) ;
476479 } )
@@ -608,7 +611,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
608611 osparc . store . Folders . getInstance ( ) . trashFolder ( folderId , this . getCurrentWorkspaceId ( ) )
609612 . then ( ( ) => {
610613 this . __reloadFolders ( ) ;
611- const msg = this . tr ( "Successfully moved to Trash " ) ;
614+ const msg = this . tr ( "Successfully moved to Bin " ) ;
612615 osparc . FlashMessenger . getInstance ( ) . logAs ( msg , "INFO" ) ;
613616 this . _resourceFilter . setTrashEmpty ( false ) ;
614617 } )
@@ -620,11 +623,11 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
620623
621624 _trashFolderRequested : function ( folderId ) {
622625 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 ?" ) ;
624627 msg += "<br><br>" + this . tr ( "It will be permanently deleted after " ) + trashDays + " days." ;
625628 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 " ) ,
628631 confirmAction : "warning" ,
629632 } ) ;
630633 confirmationWin . center ( ) ;
@@ -745,6 +748,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
745748 delete reqParams [ "type" ] ;
746749 delete reqParams [ "limit" ] ;
747750 delete reqParams [ "offset" ] ;
751+ delete reqParams [ "filters" ] ;
748752
749753 const cParams = this . __getRequestParams ( ) ;
750754 const currentParams = { } ;
@@ -1051,17 +1055,17 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
10511055
10521056 studiesMoveButton . set ( {
10531057 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 } )` : "" ) ,
10551059 } ) ;
10561060
10571061 studiesTrashButton . set ( {
10581062 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 } )` : "" ) ,
10601064 } ) ;
10611065
10621066 studiesDeleteButton . set ( {
10631067 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 } )` : "" ) ,
10651069 } ) ;
10661070 } ) ;
10671071
@@ -1320,8 +1324,8 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
13201324 } ,
13211325
13221326 __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" ,
13251329 visibility : "excluded"
13261330 } ) ;
13271331 osparc . utils . Utils . setIdToWidget ( trashButton , "deleteStudiesBtn" ) ;
@@ -1345,7 +1349,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
13451349 } ,
13461350
13471351 __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 ( {
13491353 appearance : "danger-button" ,
13501354 visibility : "excluded"
13511355 } ) ;
@@ -1828,7 +1832,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
18281832 } ,
18291833
18301834 __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" ) ;
18321836 trashButton [ "trashButton" ] = true ;
18331837 trashButton . set ( {
18341838 appearance : "menu-button"
@@ -1849,7 +1853,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
18491853 } ,
18501854
18511855 __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" ) ;
18531857 deleteButton [ "deleteButton" ] = true ;
18541858 deleteButton . set ( {
18551859 appearance : "menu-button"
@@ -2029,7 +2033,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
20292033 osparc . store . Store . getInstance ( ) . trashStudy ( studyData . uuid )
20302034 . then ( ( ) => {
20312035 this . __removeFromStudyList ( studyData . uuid ) ;
2032- const msg = this . tr ( "Successfully moved to Trash " ) ;
2036+ const msg = this . tr ( "Successfully moved to Bin " ) ;
20332037 osparc . FlashMessenger . getInstance ( ) . logAs ( msg , "INFO" ) ;
20342038 this . _resourceFilter . setTrashEmpty ( false ) ;
20352039 } )
@@ -2089,12 +2093,12 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
20892093 } else {
20902094 msg += ` '${ studyNames [ 0 ] } ' ` ;
20912095 }
2092- msg += this . tr ( "to the Trash ?" ) ;
2096+ msg += this . tr ( "to the Bin ?" ) ;
20932097 const trashDays = osparc . store . StaticInfo . getInstance ( ) . getTrashRetentionDays ( ) ;
20942098 msg += "<br><br>" + ( studyNames . length > 1 ? "They" : "It" ) + this . tr ( ` will be permanently deleted after ${ trashDays } days.` ) ;
20952099 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 " ) ,
20982102 confirmAction : "warning" ,
20992103 } ) ;
21002104 osparc . utils . Utils . setIdToWidget ( confirmationWin . getConfirmButton ( ) , "confirmDeleteStudyBtn" ) ;
@@ -2118,7 +2122,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
21182122 msg += ( studyNames . length > 1 ? ` ${ studyNames . length } ${ studyAlias } ?` : ` <b>${ studyNames [ 0 ] } </b>?` ) ;
21192123 const confirmationWin = new osparc . ui . window . Confirmation ( msg ) . set ( {
21202124 caption : this . tr ( "Delete" ) + " " + studyAlias ,
2121- confirmText : this . tr ( "Delete" ) ,
2125+ confirmText : this . tr ( "Delete permanently " ) ,
21222126 confirmAction : "delete"
21232127 } ) ;
21242128 osparc . utils . Utils . setIdToWidget ( confirmationWin . getConfirmButton ( ) , "confirmDeleteStudyBtn" ) ;
@@ -2129,7 +2133,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
21292133 const msg = this . tr ( "Items in the bin will be permanently deleted" ) ;
21302134 const confirmationWin = new osparc . ui . window . Confirmation ( msg ) . set ( {
21312135 caption : this . tr ( "Delete" ) ,
2132- confirmText : this . tr ( "Delete forever " ) ,
2136+ confirmText : this . tr ( "Delete permanently " ) ,
21332137 confirmAction : "delete"
21342138 } ) ;
21352139 return confirmationWin ;
0 commit comments