@@ -339,7 +339,7 @@ export class ServerManagerView {
339339 firstTab . properties . tabId ,
340340 ) ! ;
341341 let lastActiveTab = this . getTabById ( lastActiveTabId ) ! ;
342- if ( lastActiveTab . properties . index >= servers . length ) {
342+ if ( lastActiveTab . properties . order >= servers . length ) {
343343 lastActiveTab = firstTab ;
344344 }
345345
@@ -367,15 +367,15 @@ export class ServerManagerView {
367367 }
368368 }
369369
370- initServer ( server : ServerConfig , index : number ) : ServerTab {
370+ initServer ( server : ServerConfig , order : number ) : ServerTab {
371371 const tabId = server . id ;
372372 const tab : ServerTab = new ServerTab ( {
373373 role : "server" ,
374374 icon : DomainUtil . iconAsUrl ( server . icon ) ,
375375 label : server . alias ,
376376 $root : this . $tabsContainer ,
377377 onClick : this . activateLastTab . bind ( this , tabId ) ,
378- index ,
378+ order ,
379379 tabId,
380380 onHover : this . onHover . bind ( this , tabId ) ,
381381 onHoverOut : this . onHoverOut . bind ( this , tabId ) ,
@@ -555,7 +555,7 @@ export class ServerManagerView {
555555 return ;
556556 }
557557
558- const index = this . tabs . length ;
558+ const order = this . tabs . length ;
559559 const tabId = this . generateTabId ( ) ;
560560 this . functionalTabs . set ( tabProperties . page , tabId ) ;
561561 const $view = await tabProperties . makeView ( ) ;
@@ -568,7 +568,7 @@ export class ServerManagerView {
568568 label : tabProperties . label ,
569569 page : tabProperties . page ,
570570 $root : this . $tabsContainer ,
571- index ,
571+ order ,
572572 tabId,
573573 onClick : this . activateTab . bind ( this , tabId ) ,
574574 onDestroy : async ( ) => {
@@ -651,7 +651,7 @@ export class ServerManagerView {
651651 role : tab . properties . role ,
652652 page : tab . properties . page ,
653653 label : tab . properties . label ,
654- index : tab . properties . index ,
654+ order : tab . properties . order ,
655655 id : tab . properties . tabId ,
656656 } ) ) ;
657657 }
@@ -660,7 +660,7 @@ export class ServerManagerView {
660660 tabs : ServerOrFunctionalTab [ ] ,
661661 order : number ,
662662 ) : ServerOrFunctionalTab | undefined {
663- return tabs . find ( ( tab ) => tab . properties . index === order ) ;
663+ return tabs . find ( ( tab ) => tab . properties . order === order ) ;
664664 }
665665
666666 async activateTab ( id : string , hideOldTab = true ) : Promise < void > {
0 commit comments