Add classes to small action buttons
This commit is contained in:
parent
cbe17be40e
commit
605653a369
|
@ -75,6 +75,7 @@ export default createWidget('post-small-action', {
|
||||||
|
|
||||||
if (attrs.canDelete) {
|
if (attrs.canDelete) {
|
||||||
contents.push(this.attach('button', {
|
contents.push(this.attach('button', {
|
||||||
|
className: 'small-action-delete',
|
||||||
icon: 'times',
|
icon: 'times',
|
||||||
action: 'deletePost',
|
action: 'deletePost',
|
||||||
title: 'post.controls.delete'
|
title: 'post.controls.delete'
|
||||||
|
@ -83,6 +84,7 @@ export default createWidget('post-small-action', {
|
||||||
|
|
||||||
if (attrs.canEdit) {
|
if (attrs.canEdit) {
|
||||||
contents.push(this.attach('button', {
|
contents.push(this.attach('button', {
|
||||||
|
className: 'small-action-edit',
|
||||||
icon: 'pencil',
|
icon: 'pencil',
|
||||||
action: 'editPost',
|
action: 'editPost',
|
||||||
title: 'post.controls.edit'
|
title: 'post.controls.edit'
|
||||||
|
|
Loading…
Reference in New Issue