Use group ID instead of name in generated class names

This fixes #847.
This commit is contained in:
Franz Liedke 2016-03-29 22:08:44 +09:00
parent d1c25a4bad
commit 16b229649a
3 changed files with 3 additions and 3 deletions

View File

@ -18653,7 +18653,7 @@ System.register('flarum/components/GroupBadge', ['flarum/components/Badge'], fun
props.icon = props.group.icon();
props.style = { backgroundColor: props.group.color() };
props.label = typeof props.label === 'undefined' ? props.group.nameSingular() : props.label;
props.type = 'group--' + props.group.nameSingular();
props.type = 'group--' + props.group.id();
delete props.group;
}

View File

@ -22160,7 +22160,7 @@ System.register('flarum/components/GroupBadge', ['flarum/components/Badge'], fun
props.icon = props.group.icon();
props.style = { backgroundColor: props.group.color() };
props.label = typeof props.label === 'undefined' ? props.group.nameSingular() : props.label;
props.type = 'group--' + props.group.nameSingular();
props.type = 'group--' + props.group.id();
delete props.group;
}

View File

@ -8,7 +8,7 @@ export default class GroupBadge extends Badge {
props.icon = props.group.icon();
props.style = {backgroundColor: props.group.color()};
props.label = typeof props.label === 'undefined' ? props.group.nameSingular() : props.label;
props.type = 'group--' + props.group.nameSingular();
props.type = 'group--' + props.group.id();
delete props.group;
}