@@ -45,10 +45,10 @@ class RunView extends ScreenView {
4545 private processContainer : WeyaElement
4646 private customMetrics : CustomMetricList
4747
48- constructor ( uuid : string , rank ?: string ) {
48+ constructor ( uuid : string ) {
4949 super ( )
50- this . uuid = uuid + ( rank ? '_' + rank : '' )
51- this . rank = rank
50+ this . uuid = uuid
51+ this . rank = uuid . split ( '_' ) [ 1 ]
5252 this . runCache = CACHE . getRun ( this . uuid )
5353 this . statusCache = CACHE . getRunStatus ( this . uuid )
5454 this . userCache = CACHE . getUser ( )
@@ -325,7 +325,7 @@ class RunView extends ScreenView {
325325 this . rankElems = $ ( 'div' , '.hidden.list.runs-list.list-group' , $ => {
326326 for ( const [ rank , run_uuid ] of Object . entries ( this . run . other_rank_run_uuids ) ) {
327327 $ ( 'a' , '.list-item.list-group-item.list-group-item-action' ,
328- { href : `/run/${ this . uuid } / ${ rank } ` , target : "_blank" } ,
328+ { href : `/run/${ this . uuid } _ ${ rank } ` , target : "_blank" } ,
329329 $ => {
330330 $ ( 'div' , $ => {
331331 $ ( 'h6' , `Rank ${ + rank + 1 } ` )
@@ -340,11 +340,6 @@ class RunView extends ScreenView {
340340export class RunHandler {
341341 constructor ( ) {
342342 ROUTER . route ( 'run/:uuid' , [ this . handleRun ] )
343- ROUTER . route ( 'run/:uuid/:rank' , [ this . handleDistributedRun ] )
344- }
345-
346- handleDistributedRun = ( uuid : string , rank : string ) => {
347- SCREEN . setView ( new RunView ( uuid , rank ) )
348343 }
349344
350345 handleRun = ( uuid : string ) => {
0 commit comments