File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -898,15 +898,21 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
898898 } ) ;
899899
900900 this . _resourcesContainer . addListener ( "changeSelection" , e => {
901+ const currentContext = this . getCurrentContext ( ) ;
901902 const selection = e . getData ( ) ;
902903
903904 studiesMoveButton . set ( {
904- visibility : selection . length ? "visible" : "excluded" ,
905+ visibility : selection . length && currentContext === "studiesAndFolders" ? "visible" : "excluded" ,
905906 label : selection . length > 1 ? this . tr ( "Move selected" ) + " (" + selection . length + ")" : this . tr ( "Move" )
906907 } ) ;
907908
909+ studiesTrashButton . set ( {
910+ visibility : selection . length && currentContext === "studiesAndFolders" ? "visible" : "excluded" ,
911+ label : selection . length > 1 ? this . tr ( "Trash selected" ) + " (" + selection . length + ")" : this . tr ( "Trash" )
912+ } ) ;
913+
908914 studiesDeleteButton . set ( {
909- visibility : selection . length ? "visible" : "excluded" ,
915+ visibility : selection . length && currentContext === "trash" ? "visible" : "excluded" ,
910916 label : selection . length > 1 ? this . tr ( "Delete selected" ) + " (" + selection . length + ")" : this . tr ( "Delete" )
911917 } ) ;
912918 } ) ;
You can’t perform that action at this time.
0 commit comments