diff --git a/app/assets/javascripts/app/lib/app_post/_object_organization_autocompletion.coffee b/app/assets/javascripts/app/lib/app_post/_object_organization_autocompletion.coffee
index da0d8b2ee..5d01652d6 100644
--- a/app/assets/javascripts/app/lib/app_post/_object_organization_autocompletion.coffee
+++ b/app/assets/javascripts/app/lib/app_post/_object_organization_autocompletion.coffee
@@ -27,6 +27,7 @@ class App.ObjectOrganizationAutocompletion extends App.Controller
objectSingle: 'User'
objectIcon: 'user'
+ inactiveObjectIcon: 'inactive-user'
objectSingels: 'People'
objectCreate: 'Create new object'
referenceAttribute: 'member_ids'
@@ -89,6 +90,7 @@ class App.ObjectOrganizationAutocompletion extends App.Controller
@objectId.val('').trigger('change')
onObjectClick: (e) =>
+ return if e.currentTarget.classList.contains('is-inactive')
objectId = $(e.currentTarget).data('object-id')
@selectObject(objectId)
@close()
@@ -257,9 +259,14 @@ class App.ObjectOrganizationAutocompletion extends App.Controller
organizationMemebers.append(@buildObjectItem(object))
buildObjectItem: (object) =>
+ icon = @objectIcon
+
+ if object.active is false and @inactiveObjectIcon
+ icon = @inactiveObjectIcon
+
App.view(@templateObjectItem)(
object: object
- icon: @objectIcon
+ icon: icon
)
buildObjectNew: =>
diff --git a/app/assets/javascripts/app/lib/app_post/user_organization_autocompletion.coffee b/app/assets/javascripts/app/lib/app_post/user_organization_autocompletion.coffee
index 3a8f1e997..8183c5a29 100644
--- a/app/assets/javascripts/app/lib/app_post/user_organization_autocompletion.coffee
+++ b/app/assets/javascripts/app/lib/app_post/user_organization_autocompletion.coffee
@@ -1,9 +1,5 @@
class App.UserOrganizationAutocompletion extends App.ObjectOrganizationAutocompletion
- objectSingle: 'User'
- objectIcon: 'user'
- objectSingels: 'People'
objectCreate: 'Create new Customer'
- referenceAttribute: 'member_ids'
newObject: (e) =>
if e
@@ -18,10 +14,15 @@ class App.UserOrganizationAutocompletion extends App.ObjectOrganizationAutocompl
if @Config.get('ui_user_organization_selector_with_email') && !_.isEmpty(object.email)
realname += " <#{object.email}>"
+ icon = @objectIcon
+
+ if object.active is false and @inactiveObjectIcon
+ icon = @inactiveObjectIcon
+
App.view(@templateObjectItem)(
realname: realname
object: object
- icon: @objectIcon
+ icon: icon
)
class UserNew extends App.ControllerModal
diff --git a/app/assets/javascripts/app/views/generic/object_search/item_object.jst.eco b/app/assets/javascripts/app/views/generic/object_search/item_object.jst.eco
index dc5747319..3a6f4ef10 100644
--- a/app/assets/javascripts/app/views/generic/object_search/item_object.jst.eco
+++ b/app/assets/javascripts/app/views/generic/object_search/item_object.jst.eco
@@ -1,4 +1,4 @@
-
<%- @Icon(@icon, 'recipientList-icon') %>
@@ -12,4 +12,7 @@
- <%= @object.organization.displayName() %>
<% end %>
+ <% if @object.active is false: %>
+ <%= @Ti('inactive') %>
+ <% end %>
\ No newline at end of file
diff --git a/app/assets/stylesheets/svg-dimensions.css b/app/assets/stylesheets/svg-dimensions.css
index c1257a214..25821753e 100644
--- a/app/assets/stylesheets/svg-dimensions.css
+++ b/app/assets/stylesheets/svg-dimensions.css
@@ -2,6 +2,7 @@
.icon-arrow-left { width: 7px; height: 13px; }
.icon-arrow-right { width: 7px; height: 13px; }
.icon-arrow-up { width: 13px; height: 7px; }
+.icon-bold { width: 12px; height: 12px; }
.icon-chat { width: 24px; height: 24px; }
.icon-checkbox-checked { width: 11px; height: 11px; }
.icon-checkbox-indeterminate { width: 11px; height: 11px; }
@@ -38,9 +39,12 @@
.icon-google-button { width: 29px; height: 24px; }
.icon-group { width: 24px; height: 24px; }
.icon-help { width: 16px; height: 16px; }
+.icon-horizontal-rule { width: 12px; height: 12px; }
.icon-important { width: 16px; height: 16px; }
.icon-in-process { width: 64px; height: 64px; }
+.icon-inactive-user { width: 16px; height: 16px; }
.icon-info { width: 5px; height: 11px; }
+.icon-italic { width: 12px; height: 12px; }
.icon-line-left-arrow { width: 34px; height: 7px; }
.icon-line-right-arrow { width: 34px; height: 7px; }
.icon-linkedin-button { width: 29px; height: 24px; }
@@ -93,6 +97,7 @@
.icon-status-modified-outer-circle { width: 16px; height: 16px; }
.icon-status { width: 16px; height: 16px; }
.icon-stopwatch { width: 77px; height: 83px; }
+.icon-strikethrough { width: 12px; height: 12px; }
.icon-switchView { width: 19px; height: 18px; }
.icon-task-state { width: 16px; height: 16px; }
.icon-team { width: 16px; height: 16px; }
@@ -103,7 +108,9 @@
.icon-trash { width: 16px; height: 16px; }
.icon-twitter-button { width: 29px; height: 24px; }
.icon-twitter { width: 17px; height: 17px; }
+.icon-underline { width: 12px; height: 12px; }
.icon-unmute { width: 16px; height: 16px; }
+.icon-unordered-list { width: 12px; height: 12px; }
.icon-user { width: 16px; height: 16px; }
.icon-web { width: 17px; height: 17px; }
.icon-weibo-button { width: 29px; height: 24px; }
diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss
index 8e1cd1a4c..698534a6a 100644
--- a/app/assets/stylesheets/zammad.scss
+++ b/app/assets/stylesheets/zammad.scss
@@ -6591,12 +6591,15 @@ footer {
.dropdown li:hover,
.dropdown li.is-active {
background: hsl(205,90%,60%);
- }
- .dropdown li:hover + li,
- .dropdown li.is-active + li {
+ &.is-inactive {
+ background: none !important;
+ }
+
+ + li {
box-shadow: none;
}
+ }
.dropdown-menu > li.danger:hover,
.dropdown-menu > li.danger.is-active {
@@ -6736,9 +6739,24 @@ footer {
}
.recipientList-entry {
- @extend .u-clickable;
display: flex;
align-items: center;
+ @extend .u-clickable;
+
+ &.is-inactive {
+ cursor: not-allowed;
+
+ &:hover,
+ &.is-active {
+ .recipientList-icon {
+ opacity: 0.2;
+ }
+ }
+
+ .recipientList-name {
+ color: hsl(238,2%,56%);
+ }
+ }
}
.recipientList-entry .recipientList-iconSpacer {
@@ -6756,13 +6774,12 @@ footer {
opacity: 0.2;
}
- .recipientList--new .recipientList-icon {
- opacity: 1;
- }
-
- .recipientList-entry:hover .recipientList-icon,
- .recipientList-entry.is-active .recipientList-icon {
- opacity: 1;
+ .recipientList--new,
+ .recipientList-entry:hover,
+ .recipientList-entry.is-active {
+ .recipientList-icon {
+ opacity: 1;
+ }
}
.recipientList-name {
@@ -6772,6 +6789,11 @@ footer {
@extend .u-textTruncate;
}
+ .recipientList-status {
+ color: hsl(238,2%,56%);
+ opacity: 0.5;
+ }
+
.recipientList-arrow {
fill: white;
opacity: 0.39;
diff --git a/contrib/icon-sprite.sketch b/contrib/icon-sprite.sketch
index 6d28ea285..e6eb16ec3 100644
Binary files a/contrib/icon-sprite.sketch and b/contrib/icon-sprite.sketch differ
diff --git a/public/assets/images/icons.svg b/public/assets/images/icons.svg
index 9abe5dc9b..893555471 100644
--- a/public/assets/images/icons.svg
+++ b/public/assets/images/icons.svg
@@ -20,6 +20,11 @@
arrow-up