diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-02-25 17:48:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 17:48:39 -0500 |
commit | ec495bd7b23f0326fa9898a1af79ac38270f91fb (patch) | |
tree | 2dcedcd3c0beeeb9831bbbada816cc9ab45d4a5a /ext/js/data | |
parent | 6bda81b4220cf6057f24e5b08aa9a62e4e535bc2 (diff) |
Improve frequency display (#1438)
* Add frequencyDisplayMode option
* Update tests
* Add setting
* Update frequency display styles
* Improve wrapping
Diffstat (limited to 'ext/js/data')
-rw-r--r-- | ext/js/data/options-util.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js index 1105dfed..d7f09135 100644 --- a/ext/js/data/options-util.js +++ b/ext/js/data/options-util.js @@ -457,7 +457,8 @@ class OptionsUtil { {async: false, update: this._updateVersion5.bind(this)}, {async: true, update: this._updateVersion6.bind(this)}, {async: false, update: this._updateVersion7.bind(this)}, - {async: true, update: this._updateVersion8.bind(this)} + {async: true, update: this._updateVersion8.bind(this)}, + {async: false, update: this._updateVersion9.bind(this)} ]; } @@ -736,4 +737,13 @@ class OptionsUtil { } return options; } + + _updateVersion9(options) { + // Version 9 changes: + // Added general.frequencyDisplayMode. + for (const profile of options.profiles) { + profile.options.general.frequencyDisplayMode = 'split-tags-grouped'; + } + return options; + } } |