File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
services/static-webserver/client/source/class/osparc/service Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -234,25 +234,25 @@ qx.Class.define("osparc.service.Utils", {
234234 } ,
235235
236236 isDeprecated : function ( metadata ) {
237- if ( metadata && "deprecated " in metadata && ! [ null , undefined ] . includes ( metadata [ "deprecated " ] ) ) {
238- const deprecationTime = new Date ( metadata [ "deprecated " ] ) ;
237+ if ( metadata && "retired " in metadata && ! [ null , undefined ] . includes ( metadata [ "retired " ] ) ) {
238+ const deprecationTime = new Date ( metadata [ "retired " ] ) ;
239239 const now = new Date ( ) ;
240240 return deprecationTime . getTime ( ) > now . getTime ( ) ;
241241 }
242242 return false ;
243243 } ,
244244
245245 isRetired : function ( metadata ) {
246- if ( metadata && "deprecated " in metadata && ! [ null , undefined ] . includes ( metadata [ "deprecated " ] ) ) {
247- const deprecationTime = new Date ( metadata [ "deprecated " ] ) ;
246+ if ( metadata && "retired " in metadata && ! [ null , undefined ] . includes ( metadata [ "retired " ] ) ) {
247+ const deprecationTime = new Date ( metadata [ "retired " ] ) ;
248248 const now = new Date ( ) ;
249249 return deprecationTime . getTime ( ) < now . getTime ( ) ;
250250 }
251251 return false ;
252252 } ,
253253
254254 getDeprecationDateText : function ( metadata ) {
255- const deprecationTime = new Date ( metadata [ "deprecated " ] ) ;
255+ const deprecationTime = new Date ( metadata [ "retired " ] ) ;
256256 return qx . locale . Manager . tr ( "It will be Retired: " ) + osparc . utils . Utils . formatDate ( deprecationTime ) ;
257257 } ,
258258
You can’t perform that action at this time.
0 commit comments