Get Repos from api

(cherry picked from commit 8753e05ce43187436d125d4a2a69e1744aa2e69f)
This commit is contained in:
Damien CORNEAU 2016-10-12 13:21:03 +09:00 committed by Anthony Corbacho
parent 76479b37fc
commit 6a975124a2

View file

@ -20,51 +20,14 @@
function NotebookReposCtrl($http, baseUrlSrv, ngToast) {
var vm = this;
vm.notebookRepos = [
{
name: 'Classic Repo',
settings: [
{
name: 'defaulty',
type: 'input',
value: [],
selected: 'Totooo'
}
]
},
{
name: 'Empty Repo',
settings: []
},
{
name: 'ZeppelinHub',
settings: [
{
name: 'instance',
type: 'dropdown',
value: [
{
name: 'instance1',
value: 'id1'
},
{
name: 'instanceKikoo',
value: 'id2'
}
],
selected: 'id2'
}
]
}
];
vm.notebookRepos = [];
_init();
// Private functions
function _getInterpreterSettings() {
/*
$http.get(baseUrlSrv.getRestApiBase() + '/interpreter/setting')
$http.get(baseUrlSrv.getRestApiBase() + '/notebook-repositories')
.success(function(data, status, headers, config) {
vm.notebookRepos = data.body;
}).error(function(data, status, headers, config) {
@ -79,7 +42,7 @@
}, 3000);
}
console.log('Error %o %o', status, data.message);
});*/
});
}
function _init() {