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 @@ -237,25 +237,25 @@ qx.Class.define("osparc.service.Utils", {
237237 } ,
238238
239239 isDeprecated : function ( metadata ) {
240- if ( metadata && "deprecated " in metadata && ! [ null , undefined ] . includes ( metadata [ "deprecated " ] ) ) {
241- const deprecationTime = new Date ( metadata [ "deprecated " ] ) ;
240+ if ( metadata && "retired " in metadata && ! [ null , undefined ] . includes ( metadata [ "retired " ] ) ) {
241+ const deprecationTime = new Date ( metadata [ "retired " ] ) ;
242242 const now = new Date ( ) ;
243243 return deprecationTime . getTime ( ) > now . getTime ( ) ;
244244 }
245245 return false ;
246246 } ,
247247
248248 isRetired : function ( metadata ) {
249- if ( metadata && "deprecated " in metadata && ! [ null , undefined ] . includes ( metadata [ "deprecated " ] ) ) {
250- const deprecationTime = new Date ( metadata [ "deprecated " ] ) ;
249+ if ( metadata && "retired " in metadata && ! [ null , undefined ] . includes ( metadata [ "retired " ] ) ) {
250+ const deprecationTime = new Date ( metadata [ "retired " ] ) ;
251251 const now = new Date ( ) ;
252252 return deprecationTime . getTime ( ) < now . getTime ( ) ;
253253 }
254254 return false ;
255255 } ,
256256
257257 getDeprecationDateText : function ( metadata ) {
258- const deprecationTime = new Date ( metadata [ "deprecated " ] ) ;
258+ const deprecationTime = new Date ( metadata [ "retired " ] ) ;
259259 return qx . locale . Manager . tr ( "It will be Retired: " ) + osparc . utils . Utils . formatDate ( deprecationTime ) ;
260260 } ,
261261
You can’t perform that action at this time.
0 commit comments