V8/invite user curosr ui fix (#6985)

* add optional readonly scope attribute

* add readonly attribute to umb-checkmark directive in user invite section of user.html template. Extend ng-class statement in umb-checkmark template, adding cursor-auto when readonly is defined
This commit is contained in:
Thor Madsen-Holm
2019-12-20 10:55:28 +01:00
committed by Kenn Jacobsen
parent 394f0dbd9f
commit c892cca28c
3 changed files with 4 additions and 2 deletions

View File

@@ -10,7 +10,8 @@
templateUrl: 'views/components/umb-checkmark.html',
scope: {
size: "@?",
checked: "="
checked: "=",
readonly: "@?"
}
};

View File

@@ -1 +1 @@
<i class="icon-check umb-checkmark umb-checkmark--{{size}}" ng-class="{'umb-checkmark--checked': checked}"></i>
<i class="icon-check umb-checkmark umb-checkmark--{{size}}" ng-class="{'umb-checkmark--checked': checked, 'cursor-auto': readonly}"></i>

View File

@@ -505,6 +505,7 @@
<div class="flex items-center" style="margin-bottom: 15px;">
<umb-checkmark
checked="vm.usersViewState === 'inviteUserSuccess'"
readonly="true"
size="m">
</umb-checkmark>
<h3 class="bold" style="margin: 0 0 0 10px;">