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/load-config/load-config.component.ts

32 lines
No EOL
920 B
TypeScript

import { Input, Component, Inject } from 'ng-metadata/core';
const templateUrl = require('./load-config.html');
@Component({
selector: 'load-config',
templateUrl,
})
export class LoadConfigComponent {
private resetUpload: number = 0;
private handleTarballSelected(files, callback) {
console.log('hi world')
/*
$scope.certsUploading = true;
$upload.upload({
url: '/api/v1/superuser/customcerts/' + files[0].name,
method: 'POST',
data: {'_csrf_token': window.__token},
file: files[0]
}).success(function() {
callback(true);
$scope.resetUpload++;
loadCertificates();
}).error(function(r) {
bootbox.alert('Could not upload certificate')
callback(false);
$scope.resetUpload++;
loadCertificates();
});
*/
}
}