Skip to content

Commit

Permalink
refactor(NodeService): reorder constructor parameters alphabetically …
Browse files Browse the repository at this point in the history
…for consistency across services
  • Loading branch information
hirokiterashima committed Dec 20, 2024
1 parent dc01597 commit 9c57795
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/assets/wise5/services/nodeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import { ConstraintService } from './constraintService';

@Injectable()
export abstract class NodeService {
private nodeSubmitClickedSource: Subject<any> = new Subject<any>();
public nodeSubmitClicked$: Observable<any> = this.nodeSubmitClickedSource.asObservable();
private doneRenderingComponentSource: Subject<any> = new Subject<any>();
public doneRenderingComponent$ = this.doneRenderingComponentSource.asObservable();
private nodeSubmitClickedSource: Subject<any> = new Subject<any>();
public nodeSubmitClicked$: Observable<any> = this.nodeSubmitClickedSource.asObservable();

constructor(
protected dataService: DataService,
protected dialog: MatDialog,
protected configService: ConfigService,
protected constraintService: ConstraintService,
protected dataService: DataService,
protected dialog: MatDialog,
protected projectService: ProjectService
) {}

Expand Down
6 changes: 3 additions & 3 deletions src/assets/wise5/services/studentNodeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ export class StudentNodeService extends NodeService {
private transitionResults = {};

constructor(
protected dataService: StudentDataService,
protected dialog: MatDialog,
protected configService: ConfigService,
protected constraintService: ConstraintService,
protected dataService: StudentDataService,
protected dialog: MatDialog,
private nodeStatusService: NodeStatusService,
protected projectService: ProjectService
) {
super(dataService, dialog, configService, constraintService, projectService);
super(configService, constraintService, dataService, dialog, projectService);
}

setCurrentNode(nodeId: string): void {
Expand Down
6 changes: 3 additions & 3 deletions src/assets/wise5/services/teacherNodeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ export class TeacherNodeService extends NodeService {
public starterStateResponse$: Observable<any> = this.starterStateResponseSource.asObservable();

constructor(
protected dataService: TeacherDataService,
protected dialog: MatDialog,
protected configService: ConfigService,
protected constraintService: ConstraintService,
protected dataService: TeacherDataService,
protected dialog: MatDialog,
protected projectService: TeacherProjectService
) {
super(dataService, dialog, configService, constraintService, projectService);
super(configService, constraintService, dataService, dialog, projectService);
}

broadcastComponentShowSubmitButtonValueChanged(args: any): void {
Expand Down

0 comments on commit 9c57795

Please sign in to comment.