mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-06 07:03:33 +00:00
Displaying (unformatted) function code.
This commit is contained in:
parent
4ecdfed46f
commit
c92142ca02
20 changed files with 242 additions and 44 deletions
|
|
@ -21,7 +21,11 @@ module.controller('CodeTabController', function(
|
|||
$scope.selectedModule = null;
|
||||
$scope.functionList = [];
|
||||
|
||||
$rootScope.$on('refresh', function() {
|
||||
function refresh() {
|
||||
if (!app.session || !app.session.dataSource) {
|
||||
$scope.moduleList = [];
|
||||
return;
|
||||
}
|
||||
var dataSource = app.session.dataSource;
|
||||
|
||||
dataSource.getModuleList().then(function(list) {
|
||||
|
|
@ -38,7 +42,8 @@ module.controller('CodeTabController', function(
|
|||
});
|
||||
|
||||
console.log('refresh');
|
||||
});
|
||||
};
|
||||
$rootScope.$on('refresh', refresh);
|
||||
|
||||
$scope.selectModule = function(module) {
|
||||
var moduleChange = module != $scope.selectedModule;
|
||||
|
|
@ -55,4 +60,8 @@ module.controller('CodeTabController', function(
|
|||
log.error('Unable to fetch function list');
|
||||
});
|
||||
};
|
||||
|
||||
if (app.session.dataSource) {
|
||||
refresh();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue