Skip to content

Commit

Permalink
Overview lti comps
Browse files Browse the repository at this point in the history
  • Loading branch information
raffifasaro committed Nov 30, 2024
1 parent cfc30cc commit ad4c74b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component } from '@angular/core';
import { Component, inject } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { AlertService } from 'app/core/util/alert.service';
Expand All @@ -8,19 +8,17 @@ import { AlertService } from 'app/core/util/alert.service';
templateUrl: './lti-initializer-modal.component.html',
})
export class LtiInitializerModalComponent {
private activeModal = inject(NgbActiveModal);
private alertService = inject(AlertService);
private router = inject(Router);
private activatedRoute = inject(ActivatedRoute);

password: string;
loginName: string;
passwordResetLocation = ['account', 'reset', 'request'];

readAndUnderstood = false;

constructor(
private activeModal: NgbActiveModal,
private alertService: AlertService,
private router: Router,
private activatedRoute: ActivatedRoute,
) {}

/**
* Closes the dialog, removes the query parameter and shows a helper message
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { Component, OnInit, inject } from '@angular/core';
import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { LtiInitializerModalComponent } from 'app/overview/exercise-details/lti-initializer-modal.component';
import { UserService } from 'app/core/user/user.service';
Expand All @@ -11,16 +11,14 @@ import { AccountService } from 'app/core/auth/account.service';
template: '',
})
export class LtiInitializerComponent implements OnInit {
modalRef: NgbModalRef | undefined;
private modalService = inject(NgbModal);
private userService = inject(UserService);
private alertService = inject(AlertService);
private router = inject(Router);
private activatedRoute = inject(ActivatedRoute);
private accountService = inject(AccountService);

constructor(
private modalService: NgbModal,
private userService: UserService,
private alertService: AlertService,
private router: Router,
private activatedRoute: ActivatedRoute,
private accountService: AccountService,
) {}
modalRef: NgbModalRef | undefined;

ngOnInit() {
this.activatedRoute.queryParams.subscribe((queryParams) => {
Expand Down

0 comments on commit ad4c74b

Please sign in to comment.