Skip to content

Commit

Permalink
last minute push
Browse files Browse the repository at this point in the history
  • Loading branch information
haerrel committed Jun 17, 2019
1 parent 94e95a4 commit 3873f35
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 41 deletions.
5 changes: 4 additions & 1 deletion src/main/typescript/angularclient/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ import {MDBBootstrapModule} from 'angular-bootstrap-md';
AppRoutingModule,
HttpClientModule,
BrowserAnimationsModule,
ToastrModule.forRoot(),
ToastrModule.forRoot({
positionClass: 'toast-bottom-right',
preventDuplicates: true
}),
FormsModule
],
providers: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, OnInit } from '@angular/core';
import {AuthService} from '../../services/auth/auth.service';
import {Router} from '@angular/router';
import {MyToastrService} from "../../services/toast/my-toastr.service";
import {ToastrService} from 'ngx-toastr';

@Component({
selector: 'app-login',
Expand All @@ -12,7 +12,7 @@ export class LoginComponent implements OnInit {
username: string;
password: string;

constructor(private service: AuthService, private router: Router, private toastr: MyToastrService) { }
constructor(private service: AuthService, private router: Router, private toastr: ToastrService) { }

ngOnInit() {
if (this.service.isLoggedIn()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, OnInit } from '@angular/core';
import {Problem} from '../../../shared/problem';
import {BackendService} from '../../../services/Backend/backend.service';
import {MyToastrService} from "../../../services/toast/my-toastr.service";
import {ToastrService} from 'ngx-toastr';

@Component({
selector: 'app-report-problem',
Expand All @@ -12,7 +12,7 @@ export class ReportProblemComponent implements OnInit {

problem = new Problem();

constructor(private backend: BackendService, private toastr: MyToastrService) { }
constructor(private backend: BackendService, private toastr: ToastrService) { }

ngOnInit() {
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, OnInit } from '@angular/core';
import {BackendService} from '../../../services/Backend/backend.service';
import {Problem} from '../../../shared/problem';
import {MyToastrService} from "../../../services/toast/my-toastr.service";
import {ToastrService} from 'ngx-toastr';

@Component({
selector: 'app-show-all-problems',
Expand All @@ -12,7 +12,7 @@ export class ShowAllProblemsComponent implements OnInit {

problems: Array<Problem> = [];

constructor(private backend: BackendService, private toastr: MyToastrService) { }
constructor(private backend: BackendService, private toastr: ToastrService) { }

ngOnInit() {
this.backend.getProblems().subscribe(problems => this.problems = problems);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
import {Problem} from '../../../shared/problem';
import {BackendService} from '../../../services/Backend/backend.service';
import {ActivatedRoute, Router} from '@angular/router';
import {MyToastrService} from "../../../services/toast/my-toastr.service";
import {ToastrService} from 'ngx-toastr';

@Component({
selector: 'app-show-problem',
Expand All @@ -13,7 +13,7 @@ export class ShowProblemComponent implements OnInit {

problem = new Problem();

constructor(private route: ActivatedRoute, private backend: BackendService, private toastr: MyToastrService, private router: Router) { }
constructor(private route: ActivatedRoute, private backend: BackendService, private toastr: ToastrService, private router: Router) { }

ngOnInit() {
this.route.paramMap.subscribe(params => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {ActivatedRoute} from '@angular/router';
import {BackendService} from '../../../../services/Backend/backend.service';
import {App} from '../../../../shared/app';
import {Tag} from '../../../../shared/tag';
import {MyToastrService} from "../../../../services/toast/my-toastr.service";
import {ToastrService} from 'ngx-toastr';

@Component({
selector: 'app-edit-app',
Expand All @@ -15,7 +15,7 @@ export class EditAppComponent implements OnInit {
submitEnabled = true;
app: App = new App();

constructor(private route: ActivatedRoute, private backend: BackendService, private toastr: MyToastrService) { }
constructor(private route: ActivatedRoute, private backend: BackendService, private toastr: ToastrService) { }

ngOnInit() {
this.refreshForm();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Component, OnInit } from '@angular/core';
import {BackendService} from '../../../../services/Backend/backend.service';
import {App} from '../../../../shared/app';
import {Tag} from '../../../../shared/tag';
import {MyToastrService} from "../../../../services/toast/my-toastr.service";
import * as moment from 'moment';
import {ToastrService} from 'ngx-toastr';

@Component({
selector: 'app-new-app',
Expand All @@ -18,7 +18,7 @@ export class NewAppComponent implements OnInit {
link: string;
price: string;

constructor(private backend: BackendService, private toastr: MyToastrService) { }
constructor(private backend: BackendService, private toastr: ToastrService) { }

ngOnInit() {
}
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 3873f35

Please sign in to comment.