add loader to overlay

This commit is contained in:
Mads Rasmussen
2016-01-19 12:29:14 +01:00
parent 9ea492f5b7
commit 28aa928655
2 changed files with 8 additions and 0 deletions

View File

@@ -23,6 +23,7 @@
vm.tabsLoaded = 0;
vm.typesAndEditors = [];
vm.userConfigured = [];
vm.loading = false;
vm.tabs = [{
active: true,
id: 1,
@@ -52,6 +53,8 @@
function getGroupedPropertyEditors() {
vm.loading = true;
dataTypeResource.getGroupedPropertyEditors().then(function(data) {
vm.tabs[0].typesAndEditors = data;
vm.typesAndEditors = data;
@@ -63,6 +66,8 @@
function getGroupedDataTypes() {
vm.loading = true;
dataTypeResource.getGroupedDataTypes().then(function(data) {
vm.tabs[1].userConfigured = data;
vm.userConfigured = data;
@@ -74,6 +79,7 @@
function checkIfTabContentIsLoaded() {
if (vm.tabsLoaded === 2) {
vm.loading = false;
vm.showTabs = true;
}
}

View File

@@ -15,6 +15,8 @@
</div>
</div>
<umb-load-indicator ng-if="vm.loading"></umb-load-indicator>
<!-- TABS -->
<div ng-if="vm.showTabs">