Skip to content

Commit 8753e05

Browse files
committed
Get Repos from api
1 parent ba9f59b commit 8753e05

File tree

1 file changed

+3
-40
lines changed

1 file changed

+3
-40
lines changed

zeppelin-web/src/app/notebookRepos/notebookRepos.controller.js

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -20,51 +20,14 @@
2020

2121
function NotebookReposCtrl($http, baseUrlSrv, ngToast) {
2222
var vm = this;
23-
vm.notebookRepos = [
24-
{
25-
name: 'Classic Repo',
26-
settings: [
27-
{
28-
name: 'defaulty',
29-
type: 'input',
30-
value: [],
31-
selected: 'Totooo'
32-
}
33-
]
34-
},
35-
{
36-
name: 'Empty Repo',
37-
settings: []
38-
},
39-
{
40-
name: 'ZeppelinHub',
41-
settings: [
42-
{
43-
name: 'instance',
44-
type: 'dropdown',
45-
value: [
46-
{
47-
name: 'instance1',
48-
value: 'id1'
49-
},
50-
{
51-
name: 'instanceKikoo',
52-
value: 'id2'
53-
}
54-
],
55-
selected: 'id2'
56-
}
57-
]
58-
}
59-
];
23+
vm.notebookRepos = [];
6024

6125
_init();
6226

6327
// Private functions
6428

6529
function _getInterpreterSettings() {
66-
/*
67-
$http.get(baseUrlSrv.getRestApiBase() + '/interpreter/setting')
30+
$http.get(baseUrlSrv.getRestApiBase() + '/notebook-repositories')
6831
.success(function(data, status, headers, config) {
6932
vm.notebookRepos = data.body;
7033
}).error(function(data, status, headers, config) {
@@ -79,7 +42,7 @@
7942
}, 3000);
8043
}
8144
console.log('Error %o %o', status, data.message);
82-
});*/
45+
});
8346
}
8447

8548
function _init() {

0 commit comments

Comments
 (0)