30 lines
734 B
TypeScript
30 lines
734 B
TypeScript
import {Component, OnInit} from '@angular/core';
|
|
import {BaseComponent} from '../../pages/base-page/base.component';
|
|
import {ConfigService} from '../../config.service';
|
|
|
|
@Component({
|
|
selector: 'framadate-navigation',
|
|
templateUrl: './navigation.component.html',
|
|
styleUrls: ['./navigation.component.scss']
|
|
})
|
|
export class NavigationComponent extends BaseComponent implements OnInit {
|
|
|
|
constructor(public config: ConfigService) {
|
|
super(config);
|
|
}
|
|
|
|
ngOnInit() {
|
|
}
|
|
|
|
nextPage() {
|
|
if (this.checkValidity()) {
|
|
if (this.config.step < this.config.stepMax) {
|
|
this.config.step++;
|
|
}
|
|
|
|
} else {
|
|
this.displayErrorMessage();
|
|
}
|
|
}
|
|
}
|