1
0
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:
Alexander Skvortsov
2020-06-18 17:28:05 -04:00
committed by GitHub
parent 4fc06336df
commit 646b35374d
4 changed files with 39 additions and 46 deletions

View File

@@ -12,6 +12,6 @@ export default class Switch extends Checkbox {
}
getDisplay() {
return this.loading ? super.getDisplay() : '';
return this.props.loading ? super.getDisplay() : '';
}
}