Add "back to list" button on edit user
This commit is contained in:
committed by
Sebastiaan Janssen
parent
9cf4b7b063
commit
02281a0ee2
@@ -14,19 +14,17 @@
|
||||
vm.page.navigation = [];
|
||||
|
||||
function onInit() {
|
||||
|
||||
loadNavigation();
|
||||
|
||||
setPageName();
|
||||
}
|
||||
|
||||
function loadNavigation() {
|
||||
|
||||
var labels = ["sections_users", "general_groups"];
|
||||
var labels = ["sections_users", "general_groups", "user_userManagement"];
|
||||
|
||||
localizationService.localizeMany(labels).then(function (data) {
|
||||
vm.page.labels.users = data[0];
|
||||
vm.page.labels.groups = data[1];
|
||||
vm.page.name = data[2];
|
||||
|
||||
vm.page.navigation = [
|
||||
{
|
||||
@@ -53,12 +51,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
function setPageName() {
|
||||
localizationService.localize("user_userManagement").then(function (data) {
|
||||
vm.page.name = data;
|
||||
})
|
||||
}
|
||||
|
||||
onInit();
|
||||
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
changePassword: null
|
||||
};
|
||||
vm.breadcrumbs = [];
|
||||
vm.showBackButton = true;
|
||||
vm.avatarFile = {};
|
||||
vm.labels = {};
|
||||
vm.maxFileSize = Umbraco.Sys.ServerVariables.umbracoSettings.maxFileSize + "KB";
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
hide-icon="true"
|
||||
hide-description="true"
|
||||
hide-alias="true"
|
||||
navigation="vm.user.navigation">
|
||||
navigation="vm.user.navigation"
|
||||
on-back="vm.goToPage(vm.breadcrumbs[0])"
|
||||
show-back-button="vm.showBackButton">
|
||||
</umb-editor-header>
|
||||
|
||||
<umb-editor-container>
|
||||
|
||||
Reference in New Issue
Block a user