mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-08-29 10:35:25 +00:00
clear versions cache on flush storgae
This commit is contained in:
@@ -1417,6 +1417,7 @@ export default function ControlPanel({
|
||||
message: t("are_you_sure_flush_storage"),
|
||||
},
|
||||
function: async () => {
|
||||
localStorage.removeItem("versions_cache");
|
||||
db.delete()
|
||||
.then(() => {
|
||||
Toast.success(t("storage_flushed"));
|
||||
|
@@ -274,6 +274,7 @@ const en = {
|
||||
load_more: "Load more",
|
||||
clear_cache: "Clear cache",
|
||||
cache_cleared: "Cache cleared",
|
||||
failed_to_record_version: "Failed to record version"
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user