diff --git a/framework/core/js/forum/src/components/index-page.js b/framework/core/js/forum/src/components/index-page.js index 5abba0306..5d41f2d44 100644 --- a/framework/core/js/forum/src/components/index-page.js +++ b/framework/core/js/forum/src/components/index-page.js @@ -163,6 +163,15 @@ export default class IndexPage extends Component { }) ); + items.add('refresh', + ActionButton.component({ + title: 'Refresh', + icon: 'refresh', + className: 'btn btn-default btn-icon', + onclick: () => app.cache.discussionList.refresh() + }) + ); + return items; } diff --git a/framework/core/less/forum/index.less b/framework/core/less/forum/index.less index a3fa65a4d..a0e550a5d 100644 --- a/framework/core/less/forum/index.less +++ b/framework/core/less/forum/index.less @@ -16,17 +16,27 @@ .index-toolbar { margin-bottom: 15px; } -.index-toolbar-view { - &:extend(.list-inline); - +.index-toolbar-view, .index-toolbar-action { display: inline-block; margin: 0; + list-style: none; + padding: 0; + + & > li { + display: inline-block; + } +} +.index-toolbar-view { + & > li { + margin-right: 5px; + } } .index-toolbar-action { - &:extend(.list-inline); - float: right; - margin: 0; + + & > li { + margin-left: 5px; + } } @media @phone, @tablet {