Create download modal following setup completion

This commit is contained in:
Sam Chow 2018-06-27 13:49:54 -04:00
parent aa93d698b2
commit 2d0a599aab
12 changed files with 142 additions and 52 deletions

View file

@ -1,4 +1,4 @@
import { Input, Component, Inject } from 'ng-metadata/core';
import { Component } from 'ng-metadata/core';
const templateUrl = require('./config-setup-app.component.html');
/**
@ -9,7 +9,13 @@ const templateUrl = require('./config-setup-app.component.html');
templateUrl: templateUrl,
})
export class ConfigSetupAppComponent {
private state: 'choice' | 'setup' | 'load';
private state
: 'choice'
| 'setup'
| 'load'
| 'download';
private loadedConfig = false;
constructor() {
this.state = 'choice';
@ -21,9 +27,14 @@ export class ConfigSetupAppComponent {
private chooseLoad(): void {
this.state = 'load';
this.loadedConfig = true;
}
private configLoaded(): void {
this.state = 'setup';
}
private setupCompleted(): void {
this.state = 'download';
}
}