2017-12-23 20:47:41 -05:00
|
|
|
import { Component } from "@angular/core";
|
2017-12-24 04:02:57 -05:00
|
|
|
import { AdminApiService } from "../../shared/services/admin/admin-api.service";
|
|
|
|
import { FE_DimensionConfig } from "../../shared/models/admin_responses";
|
2017-12-23 20:47:41 -05:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
templateUrl: "./home.component.html",
|
|
|
|
styleUrls: ["./home.component.scss"],
|
|
|
|
})
|
|
|
|
export class AdminHomeComponent {
|
|
|
|
|
2017-12-23 21:45:34 -05:00
|
|
|
public isLoading = true;
|
2017-12-24 04:02:57 -05:00
|
|
|
public config: FE_DimensionConfig;
|
2017-12-23 21:45:34 -05:00
|
|
|
|
|
|
|
constructor(adminApi: AdminApiService) {
|
|
|
|
adminApi.getConfig().then(config => {
|
|
|
|
this.config = config;
|
|
|
|
this.isLoading = false;
|
|
|
|
});
|
2017-12-23 20:47:41 -05:00
|
|
|
}
|
|
|
|
}
|