UX: Display translated group name for automatic groups.

This commit is contained in:
Guo Xiang Tan
2017-05-05 14:34:47 +08:00
parent 441e0059af
commit 2b21e5ea7e
7 changed files with 56 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
import Group from 'discourse/models/group';
module("model:group");
test('displayName', function() {
const group = Group.create({ name: "test", display_name: 'donkey' });
ok(group.get('displayName'), "donkey", 'it should return the display name');
group.set('display_name', null);
ok(group.get('displayName'), "test", "it should return the group's name");
});