diff options
author | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-02-28 12:57:33 +0300 |
---|---|---|
committer | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-02-28 12:57:33 +0300 |
commit | 445cf8d9abf34bdce1ec25669a9a0deb81c5febe (patch) | |
tree | f9043274853db6f11926e15ac4afff1f4ae81ad6 /src/js/Controller/Setting/Set.js | |
parent | 2d04bf0f1f483b144e7e65a8ed8ef2b429916641 (diff) | |
parent | 94bf2d2c92b4bf73243ca33e2da21e264debe9d6 (diff) |
[#155] Merge PR
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
Diffstat (limited to 'src/js/Controller/Setting/Set.js')
-rw-r--r-- | src/js/Controller/Setting/Set.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/js/Controller/Setting/Set.js b/src/js/Controller/Setting/Set.js index 7522560..8afeeb3 100644 --- a/src/js/Controller/Setting/Set.js +++ b/src/js/Controller/Setting/Set.js @@ -16,7 +16,8 @@ export default class Set extends AbstractController { 'popup.related.search', 'notification.password.new', 'notification.password.update', - 'debug.localisation.enabled' + 'debug.localisation.enabled', + 'clipboard.clear.passwords' ]; } @@ -40,6 +41,8 @@ export default class Set extends AbstractController { await this._setSearchRecommendationMode(value); } else if(setting === 'search.recommendation.maxRows') { await this._setSearchRecommendationMaxRows(Number(value)); + } else if(setting === 'clipboard.clear.delay') { + await this._setClipboardClearDelay(Number(value)); } else if(this._booleanSettings.indexOf(setting) !== -1) { await this._setBoolean(setting, value); } else { @@ -115,4 +118,14 @@ export default class Set extends AbstractController { async _setBoolean(setting, value) { await SettingsService.set(setting, value === true); } + + /** + * + * @param {Number} value + * @return {Promise<void>} + * @private + */ + async _setClipboardClearDelay(value) { + await SettingsService.set('clipboard.clear.delay', value); + } }
\ No newline at end of file |