fix(backup): enhance backup configuration and history management
This commit is contained in:
23 files changed
+623
-92
No files matched your search
@@ -5313,6 +5313,9 @@ interface SidebarMenuFactoryContext {
|
||||
truncateMenuAction: (singleAction: () => void) => () => void;
|
||||
emptyMenuLabel: (singleLabel: string) => string;
|
||||
emptyMenuAction: (singleAction: () => void) => () => void;
|
||||
batchAutoIncrementCount: number;
|
||||
autoIncrementMenuLabel: (singleLabel: string) => string;
|
||||
autoIncrementMenuAction: (singleAction: () => void) => () => void;
|
||||
}
|
||||
|
||||
type SidebarMenuFactory = (context: SidebarMenuFactoryContext) => boolean;
|
||||
@@ -5888,7 +5891,7 @@ function buildSpecialSidebarMenu(context: SidebarMenuFactoryContext): boolean {
|
||||
}
|
||||
|
||||
function buildObjectSidebarMenu(context: SidebarMenuFactoryContext): boolean {
|
||||
const { node, items, deleteMenuLabel, deleteMenuAction, truncateMenuLabel, truncateMenuAction, emptyMenuLabel, emptyMenuAction } = context;
|
||||
const { node, items, deleteMenuLabel, deleteMenuAction, truncateMenuLabel, truncateMenuAction, emptyMenuLabel, emptyMenuAction, batchAutoIncrementCount, autoIncrementMenuLabel, autoIncrementMenuAction } = context;
|
||||
// 6. Table / View / Materialized View
|
||||
if (node.type === "table" || node.type === "view" || node.type === "materialized_view") {
|
||||
if (currentDatabaseType() === "victoriametrics" && node.type === "table") {
|
||||
@@ -6339,6 +6342,9 @@ function treeItemMenuItems(): ContextMenuItem[] {
|
||||
truncateMenuAction,
|
||||
emptyMenuLabel,
|
||||
emptyMenuAction,
|
||||
batchAutoIncrementCount,
|
||||
autoIncrementMenuLabel,
|
||||
autoIncrementMenuAction,
|
||||
};
|
||||
for (const factory of sidebarMenuFactories) {
|
||||
if (factory(factoryContext)) return items;
|
||||
|
||||
Reference in new issue
Block a user