2019-08-10 17:41:01 +02:00
|
|
|
import {Component, OnInit} from '@angular/core';
|
|
|
|
import {BaseComponent} from '../../pages/base-page/base.component';
|
|
|
|
import {ConfigService} from '../../config.service';
|
2019-08-09 17:43:23 +02:00
|
|
|
|
|
|
|
@Component({
|
2019-08-10 17:41:01 +02:00
|
|
|
selector: 'framadate-navigation',
|
|
|
|
templateUrl: './navigation.component.html',
|
|
|
|
styleUrls: ['./navigation.component.scss']
|
2019-08-09 17:43:23 +02:00
|
|
|
})
|
2019-08-10 17:41:01 +02:00
|
|
|
export class NavigationComponent extends BaseComponent implements OnInit {
|
2019-08-09 17:43:23 +02:00
|
|
|
|
2019-08-11 16:21:49 +02:00
|
|
|
constructor(public config: ConfigService) {
|
2019-08-10 17:41:01 +02:00
|
|
|
super(config);
|
|
|
|
}
|
2019-08-09 17:43:23 +02:00
|
|
|
|
2019-08-10 17:41:01 +02:00
|
|
|
ngOnInit() {
|
|
|
|
}
|
2019-08-09 17:43:23 +02:00
|
|
|
|
2019-08-10 17:41:01 +02:00
|
|
|
nextPage() {
|
|
|
|
if (this.checkValidity()) {
|
|
|
|
if (this.config.step < this.config.stepMax) {
|
|
|
|
this.config.step++;
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
this.displayErrorMessage();
|
|
|
|
}
|
|
|
|
}
|
2019-08-09 17:43:23 +02:00
|
|
|
}
|