feat: cache delete + empty snapshot + route page
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { authStore } from "@shared";
|
||||
import { authStore, snapshotStore } from "@shared";
|
||||
import {
|
||||
Power,
|
||||
LucideIcon,
|
||||
@@ -12,7 +12,9 @@ import {
|
||||
Split,
|
||||
PersonStanding,
|
||||
Cpu,
|
||||
RefreshCcw,
|
||||
} from "lucide-react";
|
||||
import { toast } from "react-toastify";
|
||||
|
||||
import carrierIcon from "./carrier.svg";
|
||||
|
||||
@@ -165,6 +167,15 @@ export const NAVIGATION_ITEMS: {
|
||||
},
|
||||
],
|
||||
secondary: [
|
||||
{
|
||||
id: "clear-cache",
|
||||
label: "Очистить кэш",
|
||||
icon: RefreshCcw,
|
||||
onClick: () => {
|
||||
snapshotStore.clearStoreCache();
|
||||
toast.success("Кэш очищен");
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "logout",
|
||||
label: "Выйти",
|
||||
|
||||
Reference in New Issue
Block a user