show calculated start nodes on the user profile

This commit is contained in:
Mads Rasmussen
2017-08-23 15:21:19 +02:00
parent f50898ee6d
commit ff45f1f9cc
3 changed files with 41 additions and 2 deletions

View File

@@ -23,7 +23,7 @@
<umb-box>
<umb-box-header title-key="user_access"></umb-box-header>
<umb-box-header title-key="user_assignAccess"></umb-box-header>
<umb-box-content class="block-form">

View File

@@ -73,7 +73,7 @@
</umb-box>
<umb-box>
<umb-box-header title-key="user_access"></umb-box-header>
<umb-box-header title-key="user_assignAccess"></umb-box-header>
<umb-box-content class="block-form">
<umb-control-group style="margin-bottom: 25px;" label="@general_groups" description="@user_groupsHelp" required="true">
@@ -158,6 +158,41 @@
</umb-box-content>
</umb-box>
<umb-box>
<umb-box-header title-key="user_access" description-key="user_accessHelp"></umb-box-header>
<umb-box-content class="block-form" style="padding-bottom: 0;">
<umb-control-group label="@sections_content">
<umb-node-preview
style="max-width: 100%;"
ng-repeat="node in vm.user.calculatedStartContentIds"
icon="node.icon"
name="node.name">
</umb-node-preview>
<umb-node-preview
ng-if="vm.user.calculatedStartContentIds.length === 0"
style="max-width: 100%;"
name="vm.labels.noStartNodes">
</umb-node-preview>
</umb-control-group>
<umb-control-group label="@sections_media">
<umb-node-preview
style="max-width: 100%;"
ng-repeat="node in vm.user.calculatedStartMediaIds"
icon="node.icon"
name="node.name">
</umb-node-preview>
<umb-node-preview
ng-if="vm.user.calculatedStartMediaIds.length === 0"
style="max-width: 100%;"
name="vm.labels.noStartNodes">
</umb-node-preview>
</umb-control-group>
</umb-box-content>
</umb-box>
</div>
<div class="umb-package-details__sidebar">
@@ -367,6 +402,8 @@
</div>
<pre>{{ vm.user | json }}</pre>
</umb-editor-container>
<umb-editor-footer>

View File

@@ -1586,6 +1586,8 @@ To manage your website, simply open the Umbraco back office and start adding con
</area>
<area alias="user">
<key alias="access">Access</key>
<key alias="accessHelp">Based on the assigned groups and start nodes, the user has access to the following nodes</key>
<key alias="assignAccess">Assign access</key>
<key alias="administrators">Administrator</key>
<key alias="categoryField">Category field</key>
<key alias="createDate">User is created</key>