File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2031,9 +2031,14 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
20312031 } ,
20322032
20332033 __createConfirmTrashWindow : function ( studyNames ) {
2034- let msg = this . tr ( "Are you sure you want to move to the trash" ) ;
2035- const studiesText = osparc . product . Utils . getStudyAlias ( { plural : true } ) ;
2036- msg += ( studyNames . length > 1 ? ` ${ studyNames . length } ${ studiesText } ?` : ` <b>${ studyNames [ 0 ] } </b>?` ) ;
2034+ let msg = this . tr ( "Are you sure you want to move" ) ;
2035+ if ( studyNames . length > 1 ) {
2036+ const studiesText = osparc . product . Utils . getStudyAlias ( { plural : true } ) ;
2037+ msg += ` ${ studyNames . length } ${ studiesText } `
2038+ } else {
2039+ msg += ` '${ studyNames [ 0 ] } ' ` ;
2040+ }
2041+ msg += this . tr ( "to the Trash?" ) ;
20372042 const trashDays = osparc . store . StaticInfo . getInstance ( ) . getTrashRetentionDays ( ) ;
20382043 msg += "<br><br>" + ( studyNames . length > 1 ? "They" : "It" ) + this . tr ( ` will be permanently deleted after ${ trashDays } days.` ) ;
20392044 const confirmationWin = new osparc . ui . window . Confirmation ( msg ) . set ( {
You can’t perform that action at this time.
0 commit comments