mirror of
https://github.com/flarum/core.git
synced 2025-07-26 03:01:22 +02:00
Don't store checkbox instances in NotificationGrid (#2183)
* Don't store checkbox states in NotificaitonGrid, use props for loading in Checkbox and Switch, replace preferenceSaver with internal management of loading state
This commit is contained in:
committed by
GitHub
parent
4fc06336df
commit
646b35374d
@@ -12,6 +12,6 @@ export default class Switch extends Checkbox {
|
||||
}
|
||||
|
||||
getDisplay() {
|
||||
return this.loading ? super.getDisplay() : '';
|
||||
return this.props.loading ? super.getDisplay() : '';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user