mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Get Repos from api
(cherry picked from commit 8753e05ce43187436d125d4a2a69e1744aa2e69f)
This commit is contained in:
parent
76479b37fc
commit
6a975124a2
1 changed files with 3 additions and 40 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue