mirror of
https://github.com/flarum/framework.git
synced 2025-03-19 19:45:19 +08:00
parent
541b1a59d3
commit
1ae36a0b64
@ -16,8 +16,8 @@ export default function addLockControl() {
|
||||
|
||||
DiscussionControls.lockAction = function() {
|
||||
this.save({isLocked: !this.isLocked()}).then(() => {
|
||||
if (app.current instanceof DiscussionPage) {
|
||||
app.current.stream.update();
|
||||
if (app.current.matches(DiscussionPage)) {
|
||||
app.current.get('stream').update();
|
||||
}
|
||||
|
||||
m.redraw();
|
||||
|
Loading…
x
Reference in New Issue
Block a user