This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/config_app/js/components/kube-deploy-modal/kube-deploy-modal.component.ts

20 lines
No EOL
554 B
TypeScript

import {Component, Inject} from 'ng-metadata/core';
const templateUrl = require('./kube-deploy-modal.component.html');
@Component({
selector: 'kube-deploy-modal',
templateUrl,
})
export class KubeDeployModalComponent {
private loading: boolean = true;
private deployments: any;
constructor(@Inject('ApiService') private ApiService) {
ApiService.scGetNumDeployments().then(resp => {
console.log(resp)
this.loading = false;
}).catch(err => {
this.loading = false;
})
}
}