From 04d73eedfe8399fd74423fbf45a177b751126e27 Mon Sep 17 00:00:00 2001 From: Zsolt Date: Fri, 18 Aug 2017 10:56:38 +0200 Subject: [PATCH 1/3] documentation for umbUserGoupPreview directive --- .../users/umbusergrouppreview.directive.js | 51 ++++++++++++++++++- .../src/views/users/user.html | 2 +- 2 files changed, 50 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/users/umbusergrouppreview.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/users/umbusergrouppreview.directive.js index 7623dc0ae8..fdbfd088ab 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/users/umbusergrouppreview.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/users/umbusergrouppreview.directive.js @@ -1,3 +1,51 @@ +/** +@ngdoc directive +@name umbraco.directives.directive:umbUserGroupPreview +@restrict E +@scope + +@description +Use this directive to render a user group preview, where you can see the permissions the user or group has in the back office. + +

Markup example

+
+    
+ + +
+
+ +@param {string} icon (binding): The user group icon. +@param {string} name (binding): The user group name. +@param {array} sections (binding) Lists out the sections where the user has authority to edit. +@param {string} contentStartNode (binding) + +@param {boolean} hideContentStartNode (binding) Hides the contentStartNode. +@param {string} mediaStartNode (binding) + +@param {boolean} hideMediaStartNode (binding) Hides the mediaStartNode. +@param {array} permissions (binding) A list of permissions, the user can have. +@param {boolean} allowRemove (binding): Shows or Hides the remove button. +@param {function} onRemove (expression): Callback function when the remove button is clicked. +@param {boolean} allowEdit (binding): Shows or Hides the edit button. +@param {function} onEdit (expression): Callback function when the edit button is clicked. +**/ + + (function () { 'use strict'; @@ -14,9 +62,8 @@ scope: { icon: "=?", name: "=", - description: "=?", sections: "=?", - contentStartNode: "=?", + contentStartNode: "=?", hideContentStartNode: "@?", mediaStartNode: "=?", hideMediaStartNode: "@?", diff --git a/src/Umbraco.Web.UI.Client/src/views/users/user.html b/src/Umbraco.Web.UI.Client/src/views/users/user.html index 886054c3e8..ea94687584 100644 --- a/src/Umbraco.Web.UI.Client/src/views/users/user.html +++ b/src/Umbraco.Web.UI.Client/src/views/users/user.html @@ -93,7 +93,7 @@ media-start-node="userGroup.mediaStartNode" allow-remove="!vm.user.isCurrentUser" on-remove="vm.removeSelectedItem($index, vm.user.userGroups)"> - + Date: Mon, 21 Aug 2017 13:33:20 +0200 Subject: [PATCH 2/3] testfzfzfg --- src/Umbraco.Web.UI.Client/src/views/users/user.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/users/user.html b/src/Umbraco.Web.UI.Client/src/views/users/user.html index ea94687584..9d64315a78 100644 --- a/src/Umbraco.Web.UI.Client/src/views/users/user.html +++ b/src/Umbraco.Web.UI.Client/src/views/users/user.html @@ -13,7 +13,7 @@ hide-icon="true" hide-description="true" hide-alias="true"> - + From 9fabfa92eab11b7ae153e2cba2eb70cd4491398c Mon Sep 17 00:00:00 2001 From: Zsolt Date: Mon, 21 Aug 2017 13:48:35 +0200 Subject: [PATCH 3/3] changing back the previous test --- src/Umbraco.Web.UI.Client/src/views/users/user.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/users/user.html b/src/Umbraco.Web.UI.Client/src/views/users/user.html index 9d64315a78..ea94687584 100644 --- a/src/Umbraco.Web.UI.Client/src/views/users/user.html +++ b/src/Umbraco.Web.UI.Client/src/views/users/user.html @@ -13,7 +13,7 @@ hide-icon="true" hide-description="true" hide-alias="true"> - +