Persist showArchived flag

This commit is contained in:
Mo Bitar
2017-10-16 10:10:59 -05:00
parent ddce77b8ca
commit 5987ac1aa4
2 changed files with 11 additions and 1 deletions

View File

@@ -111,6 +111,14 @@ class StorageManager {
return storage.getItem(key);
}
setBooleanValue(key, value, vault) {
this.setItem(key, JSON.stringify(value), vault);
}
getBooleanValue(key, vault) {
return JSON.parse(this.getItem(key, vault));
}
removeItem(key, vault) {
var storage = this.getVault(vault);
storage.removeItem(key);