@@ -68,31 +68,22 @@ export class ServicesClient {
6868 }
6969
7070 private _updateSourceDestinationSettings ( ) {
71- if (
72- this . _currentTeamProperties . team === null ||
73- this . _secondaryTeamProperties . length === 0
74- ) {
71+ if ( this . _currentTeamProperties . team === null || this . _secondaryTeamProperties . length === 0 ) {
7572 return ;
7673 }
77-
7874 if ( this . _viewState === ViewState . CopySettingsToTeam ) {
7975 this . _sourceTeamSettings = this . _currentTeamProperties . settings ;
8076 this . _destinationTeamSettings = [ ] ;
8177 this . _secondaryTeamProperties . forEach ( ( secTeam ) => {
8278 this . _destinationTeamSettings . push ( secTeam . settings ) ;
8379 } ) ;
84- this . _currentMappings = this . getTeamColumnDifferences (
85- this . _sourceTeamSettings ,
86- this . _destinationTeamSettings [ 0 ]
87- ) ;
80+ this . _currentMappings = this . getTeamColumnDifferences ( this . _sourceTeamSettings , this . _destinationTeamSettings [ 0 ] ) ;
81+
8882 } else if ( this . _viewState === ViewState . CopySettingsFromTeam ) {
8983 this . _sourceTeamSettings = this . _secondaryTeamProperties [ 0 ] . settings ;
9084 this . _destinationTeamSettings = [ ] ;
9185 this . _destinationTeamSettings . push ( this . _currentTeamProperties . settings ) ;
92- this . _currentMappings = this . getTeamColumnDifferences (
93- this . _sourceTeamSettings ,
94- this . _destinationTeamSettings [ 0 ]
95- ) ;
86+ this . _currentMappings = this . getTeamColumnDifferences ( this . _sourceTeamSettings , this . _destinationTeamSettings [ 0 ] ) ;
9687 }
9788 }
9889
@@ -125,10 +116,7 @@ export class ServicesClient {
125116 return this . _currentBacklogLevel ;
126117 }
127118
128- public async loadSelectedTeam (
129- teamName : string ,
130- isMultiselect : boolean = false
131- ) : Promise < void > {
119+ public async loadSelectedTeam ( teamName : string , isMultiselect : boolean = false ) : Promise < void > {
132120 let team = await this . getTeam ( teamName ) ;
133121 let context = await this . getContextForTeamAsync ( teamName ) ;
134122 let settings = await this . getTeamSettingsAsync ( context ) ;
@@ -445,9 +433,7 @@ export class ServicesClient {
445433 }
446434
447435 // public async applyTeamSettingsAsync(oldSettings: Models.IBoardSettings, settingsToApply: Models.IBoardSettings, selectedMappings: Models.IBoardColumnDifferences[], selectedBacklogLevels: string[]): Promise<Boolean> {
448- public async applyTeamSettingsAsync (
449- selectedBacklogLevels : string [ ]
450- ) : Promise < Boolean > {
436+ public async applyTeamSettingsAsync ( selectedBacklogLevels : string [ ] ) : Promise < Boolean > {
451437 let result : Boolean = false ;
452438 let wrc = getClient ( WorkRestClient ) ;
453439 let witrc = getClient ( WorkItemTrackingRestClient ) ;
@@ -468,11 +454,8 @@ export class ServicesClient {
468454 backlogIndex < this . _sourceTeamSettings . backlogSettings . length ;
469455 backlogIndex ++
470456 ) {
471- let backlogSettingToApply =
472- this . _sourceTeamSettings . backlogSettings [ backlogIndex ] ;
473- if (
474- selectedBacklogLevels . indexOf ( backlogSettingToApply . boardName ) < 0
475- ) {
457+ let backlogSettingToApply = this . _sourceTeamSettings . backlogSettings [ backlogIndex ] ;
458+ if ( selectedBacklogLevels . indexOf ( backlogSettingToApply . boardName ) < 0 ) {
476459 continue ;
477460 }
478461 console . log ( `Processing backlog [${ backlogSettingToApply . boardName } ]` ) ;
0 commit comments