1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 15:34:26 +02:00

Revert "Use GroupBadge component since we already have that"

This reverts commit eb76767e70.
This commit is contained in:
Franz Liedke
2016-03-29 22:46:23 +09:00
parent eb76767e70
commit 25d18d79fb
2 changed files with 11 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
import Modal from 'flarum/components/Modal';
import Button from 'flarum/components/Button';
import GroupBadge from 'flarum/components/GroupBadge';
import Badge from 'flarum/components/Badge';
import Group from 'flarum/models/Group';
/**
@@ -23,10 +23,9 @@ export default class EditGroupModal extends Modal {
title() {
return [
this.color() || this.icon() ? GroupBadge.component({
group: this.group,
className: 'Group-icon',
label: null
this.color() || this.icon() ? Badge.component({
icon: this.icon(),
style: {backgroundColor: this.color()}
}) : '',
' ',
this.namePlural() || app.translator.trans('core.admin.edit_group.title')