2
0
Эх сурвалжийг харах

Use new status icon CSS classes for roster contacts as well

updates #1209
JC Brand 6 жил өмнө
parent
commit
1c7c70af66

+ 5 - 5
dist/converse.js

@@ -43834,7 +43834,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
                 return;
             }
             if (_.isBoolean(plugin.enabled) && plugin.enabled || _.isFunction(plugin.enabled) && plugin.enabled(this.plugged) || _.isNil(plugin.enabled)) {
-
                 _.extend(plugin, this.properties);
                 if (plugin.dependencies) {
                     this.loadPluginDependencies(plugin);
@@ -43908,6 +43907,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
 
 //# sourceMappingURL=pluggable.js.map
 
+
 /***/ }),
 
 /***/ "./node_modules/process/browser.js":
@@ -76845,13 +76845,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
           const show = item.presence.get('show') || 'offline';
 
           if (show === 'online') {
-            status_icon = 'fa fa-circle';
+            status_icon = 'fa fa-circle chat-status chat-status--online';
           } else if (show === 'away') {
-            status_icon = 'fa fa-dot-circle';
+            status_icon = 'fa fa-circle chat-status chat-status--away';
           } else if (show === 'xa') {
-            status_icon = 'far fa-circle';
+            status_icon = 'far fa-circle chat-status';
           } else if (show === 'dnd') {
-            status_icon = 'fa fa-minus-circle';
+            status_icon = 'fa fa-minus-circle chat-status chat-status--busy';
           }
 
           const display_name = item.getDisplayName();

+ 4 - 4
src/converse-rosterview.js

@@ -477,13 +477,13 @@
                     let status_icon = 'fa fa-times-circle';
                     const show = item.presence.get('show') || 'offline';
                     if (show === 'online') {
-                        status_icon = 'fa fa-circle';
+                        status_icon = 'fa fa-circle chat-status chat-status--online';
                     } else if (show === 'away') {
-                        status_icon = 'fa fa-dot-circle';
+                        status_icon = 'fa fa-circle chat-status chat-status--away';
                     } else if (show === 'xa') {
-                        status_icon = 'far fa-circle';
+                        status_icon = 'far fa-circle chat-status';
                     } else if (show === 'dnd') {
-                        status_icon = 'fa fa-minus-circle';
+                        status_icon = 'fa fa-minus-circle chat-status chat-status--busy';
                     }
                     const display_name = item.getDisplayName();
                     this.el.innerHTML = tpl_roster_item(