@ -21,8 +21,8 @@ Ext.define('Rambox.store.ServicesList', {
, autoSync : true
, autoSync : true
, pageSize : 100000
, pageSize : 100000
, data : [
, data : [
{
{
id : 'whatsapp'
id : 'whatsapp'
, logo : 'whatsapp.png'
, logo : 'whatsapp.png'
, name : 'WhatsApp'
, name : 'WhatsApp'
, description : locale [ 'services[0]' ]
, description : locale [ 'services[0]' ]
@ -30,8 +30,8 @@ Ext.define('Rambox.store.ServicesList', {
, type : 'messaging'
, type : 'messaging'
, js _unread : 'function checkUnread(){var i=0;document.querySelectorAll(".unread").forEach(function(e){0===e.querySelectorAll("[data-icon=muted]").length&&i++});updateBadge(i)}function updateBadge(count) { if (count && count >= 1) { rambox.setUnreadCount(count); } else { rambox.clearUnreadCount(); } }setInterval(checkUnread,1e3);'
, js _unread : 'function checkUnread(){var i=0;document.querySelectorAll(".unread").forEach(function(e){0===e.querySelectorAll("[data-icon=muted]").length&&i++});updateBadge(i)}function updateBadge(count) { if (count && count >= 1) { rambox.setUnreadCount(count); } else { rambox.clearUnreadCount(); } }setInterval(checkUnread,1e3);'
, dont _update _unread _from _title : true
, dont _update _unread _from _title : true
} ,
} ,
{
{
id : 'slack'
id : 'slack'
, logo : 'slack.png'
, logo : 'slack.png'
, name : 'Slack'
, name : 'Slack'
@ -880,5 +880,14 @@ Ext.define('Rambox.store.ServicesList', {
, type : 'messaging'
, type : 'messaging'
, custom _domain : true
, custom _domain : true
} ,
} ,
{
id : 'servicenow'
, logo : 'servicenow.png'
, name : 'Servicenow'
, description : "ServiceNow is a service management platform that allows users to submit requests for technical support for hardware, software, applications, and more."
, url : 'https://___.service-now.com/'
, type : 'messaging'
, dont _update _unread _from _title : true
} ,
]
]
} ) ;
} ) ;