mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Use GroupBadge component since we already have that
This commit is contained in:
parent
98c4883cfd
commit
eb76767e70
15
js/admin/dist/app.js
vendored
15
js/admin/dist/app.js
vendored
|
@ -18257,15 +18257,15 @@ System.register('flarum/components/EditCustomCssModal', ['flarum/components/Moda
|
|||
});;
|
||||
'use strict';
|
||||
|
||||
System.register('flarum/components/EditGroupModal', ['flarum/components/Modal', 'flarum/components/Button', 'flarum/components/Badge', 'flarum/models/Group'], function (_export, _context) {
|
||||
var Modal, Button, Badge, Group, EditGroupModal;
|
||||
System.register('flarum/components/EditGroupModal', ['flarum/components/Modal', 'flarum/components/Button', 'flarum/components/GroupBadge', 'flarum/models/Group'], function (_export, _context) {
|
||||
var Modal, Button, GroupBadge, Group, EditGroupModal;
|
||||
return {
|
||||
setters: [function (_flarumComponentsModal) {
|
||||
Modal = _flarumComponentsModal.default;
|
||||
}, function (_flarumComponentsButton) {
|
||||
Button = _flarumComponentsButton.default;
|
||||
}, function (_flarumComponentsBadge) {
|
||||
Badge = _flarumComponentsBadge.default;
|
||||
}, function (_flarumComponentsGroupBadge) {
|
||||
GroupBadge = _flarumComponentsGroupBadge.default;
|
||||
}, function (_flarumModelsGroup) {
|
||||
Group = _flarumModelsGroup.default;
|
||||
}],
|
||||
|
@ -18296,9 +18296,10 @@ System.register('flarum/components/EditGroupModal', ['flarum/components/Modal',
|
|||
}, {
|
||||
key: 'title',
|
||||
value: function title() {
|
||||
return [this.color() || this.icon() ? Badge.component({
|
||||
icon: this.icon(),
|
||||
style: { backgroundColor: this.color() }
|
||||
return [this.color() || this.icon() ? GroupBadge.component({
|
||||
group: this.group,
|
||||
className: 'Group-icon',
|
||||
label: null
|
||||
}) : '', ' ', this.namePlural() || app.translator.trans('core.admin.edit_group.title')];
|
||||
}
|
||||
}, {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Modal from 'flarum/components/Modal';
|
||||
import Button from 'flarum/components/Button';
|
||||
import Badge from 'flarum/components/Badge';
|
||||
import GroupBadge from 'flarum/components/GroupBadge';
|
||||
import Group from 'flarum/models/Group';
|
||||
|
||||
/**
|
||||
|
@ -23,9 +23,10 @@ export default class EditGroupModal extends Modal {
|
|||
|
||||
title() {
|
||||
return [
|
||||
this.color() || this.icon() ? Badge.component({
|
||||
icon: this.icon(),
|
||||
style: {backgroundColor: this.color()}
|
||||
this.color() || this.icon() ? GroupBadge.component({
|
||||
group: this.group,
|
||||
className: 'Group-icon',
|
||||
label: null
|
||||
}) : '',
|
||||
' ',
|
||||
this.namePlural() || app.translator.trans('core.admin.edit_group.title')
|
||||
|
|
Loading…
Reference in New Issue
Block a user