Set the first app to active if no active apps
Add support for a block list item which only contains settings
This commit is contained in:
committed by
Michael Latouche
parent
fdc1b02b4f
commit
1bd0a1f86d
@@ -35,6 +35,11 @@ angular.module("umbraco")
|
||||
}
|
||||
}
|
||||
|
||||
var activeApp = apps.filter(x => x.active);
|
||||
if (activeApp.length === 0 && apps.length > 0) {
|
||||
apps[0].active = true;
|
||||
}
|
||||
|
||||
vm.tabs = apps;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user