mirror of
https://github.com/flarum/framework.git
synced 2025-05-24 23:59:57 +08:00
Separate icon from notification grid labels
This commit is contained in:
@ -74,7 +74,7 @@ export default class NotificationGrid extends Component {
|
|||||||
{this.types.map(type => (
|
{this.types.map(type => (
|
||||||
<tr>
|
<tr>
|
||||||
<td className="NotificationGrid-groupToggle" onclick={this.toggleType.bind(this, type.name)}>
|
<td className="NotificationGrid-groupToggle" onclick={this.toggleType.bind(this, type.name)}>
|
||||||
{type.label}
|
{icon(type.icon)} {type.label}
|
||||||
</td>
|
</td>
|
||||||
{this.methods.map(method => (
|
{this.methods.map(method => (
|
||||||
<td className="NotificationGrid-checkbox">
|
<td className="NotificationGrid-checkbox">
|
||||||
@ -181,7 +181,8 @@ export default class NotificationGrid extends Component {
|
|||||||
|
|
||||||
items.add('discussionRenamed', {
|
items.add('discussionRenamed', {
|
||||||
name: 'discussionRenamed',
|
name: 'discussionRenamed',
|
||||||
label: [icon('pencil'), ' ', app.trans('core.notify_discussion_renamed')]
|
icon: 'pencil',
|
||||||
|
label: app.trans('core.notify_discussion_renamed')
|
||||||
});
|
});
|
||||||
|
|
||||||
return items;
|
return items;
|
||||||
|
Reference in New Issue
Block a user