Render leave-group messages correctly
This commit is contained in:
parent
367421d40a
commit
85bec04010
2 changed files with 24 additions and 13 deletions
|
@ -23,6 +23,11 @@
|
|||
className: "group-update",
|
||||
render: function() {
|
||||
//TODO l10n
|
||||
if (this.model.left) {
|
||||
this.$el.text(this.model.left + ' left the group');
|
||||
return this;
|
||||
}
|
||||
|
||||
var messages = ['Updated the group.'];
|
||||
if (this.model.name) {
|
||||
messages.push("Title is now '" + this.model.name + "'.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue