forked from External/greenlight
notification when meeting is empty
This commit is contained in:
parent
27f6076954
commit
d774200296
|
@ -50,8 +50,14 @@ var removeUser = function(data){
|
||||||
|
|
||||||
var updateMeetingText = function(m){
|
var updateMeetingText = function(m){
|
||||||
if(m.hasOwnProperty('moderators')){
|
if(m.hasOwnProperty('moderators')){
|
||||||
var body = '<a>' + m['name'] + '</a><i>: ' + m['moderators'].join('(mod), ') + (m['moderators'].length > 0 ? '(mod)' : '') +
|
var list;
|
||||||
(m['participants'].length > 0 && m['moderators'].length != 0 ? ', ' : '') + m['participants'].join(', ') + '</i>'
|
if(m['moderators'].length + m['participants'].length == 0){
|
||||||
|
list = '(empty)'
|
||||||
|
} else {
|
||||||
|
list = m['moderators'].join('(mod), ') + (m['moderators'].length > 0 ? '(mod)' : '') +
|
||||||
|
(m['participants'].length > 0 && m['moderators'].length != 0 ? ', ' : '') + m['participants'].join(', ')
|
||||||
|
}
|
||||||
|
var body = '<a>' + m['name'] + '</a><i>: ' + list + '</i>'
|
||||||
} else {
|
} else {
|
||||||
var body = '<a>' + m['name'] + '</a><i> (not yet started): ' +
|
var body = '<a>' + m['name'] + '</a><i> (not yet started): ' +
|
||||||
m['users'].join(', ') + '</i>'
|
m['users'].join(', ') + '</i>'
|
||||||
|
|
Loading…
Reference in New Issue