Fix alembic migrations importing app
Ensure we connect to loaded config db
This commit is contained in:
parent
bb2b28cd11
commit
b5f630ba29
18 changed files with 69 additions and 81 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Component, Inject } from 'ng-metadata/core';
|
||||
import {Component, EventEmitter, Inject, Output} from 'ng-metadata/core';
|
||||
const templateUrl = require('./load-config.html');
|
||||
const styleUrl = require('./load-config.css');
|
||||
|
||||
|
@ -10,7 +10,7 @@ const styleUrl = require('./load-config.css');
|
|||
export class LoadConfigComponent {
|
||||
private readyToSubmit: boolean = false;
|
||||
private uploadFunc: Function;
|
||||
private state: 'load' | 'validate' = 'load';
|
||||
@Output() public configLoaded: EventEmitter<any> = new EventEmitter();
|
||||
|
||||
private constructor(@Inject('ApiService') private apiService: any) {
|
||||
}
|
||||
|
@ -27,9 +27,8 @@ export class LoadConfigComponent {
|
|||
private uploadTarball() {
|
||||
this.uploadFunc(success => {
|
||||
if (success) {
|
||||
this.state = 'validate';
|
||||
}
|
||||
else {
|
||||
this.configLoaded.emit({});
|
||||
} else {
|
||||
this.apiService.errorDisplay('Error loading configuration',
|
||||
'Could not upload configuration. Please reload the page and try again.\n' +
|
||||
'If this problem persists, please contact support')();
|
||||
|
|
Reference in a new issue