32 lines
No EOL
920 B
TypeScript
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();
|
|
});
|
|
*/
|
|
}
|
|
} |