mirror of
https://github.com/flarum/core.git
synced 2025-07-16 22:31:18 +02:00
@@ -16,8 +16,8 @@ export default function addLockControl() {
|
|||||||
|
|
||||||
DiscussionControls.lockAction = function() {
|
DiscussionControls.lockAction = function() {
|
||||||
this.save({isLocked: !this.isLocked()}).then(() => {
|
this.save({isLocked: !this.isLocked()}).then(() => {
|
||||||
if (app.current instanceof DiscussionPage) {
|
if (app.current.matches(DiscussionPage)) {
|
||||||
app.current.stream.update();
|
app.current.get('stream').update();
|
||||||
}
|
}
|
||||||
|
|
||||||
m.redraw();
|
m.redraw();
|
||||||
|
Reference in New Issue
Block a user