mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-19 16:21:13 +01:00
Hacky Yaak import complete!
This commit is contained in:
@@ -14,15 +14,13 @@ export const SidebarActions = memo(function SidebarActions() {
|
||||
|
||||
return (
|
||||
<HStack>
|
||||
{hidden && (
|
||||
<IconButton
|
||||
onClick={toggle}
|
||||
className="pointer-events-auto"
|
||||
size="sm"
|
||||
title="Show sidebar"
|
||||
icon={hidden ? 'leftPanelHidden' : 'leftPanelVisible'}
|
||||
/>
|
||||
)}
|
||||
<IconButton
|
||||
onClick={toggle}
|
||||
className="pointer-events-auto"
|
||||
size="sm"
|
||||
title="Show sidebar"
|
||||
icon={hidden ? 'leftPanelHidden' : 'leftPanelVisible'}
|
||||
/>
|
||||
<Dropdown
|
||||
items={[
|
||||
{
|
||||
|
||||
@@ -21,6 +21,7 @@ export const WorkspaceHeader = memo(function WorkspaceHeader({ className }: Prop
|
||||
|
||||
return (
|
||||
<HStack
|
||||
space={2}
|
||||
justifyContent="center"
|
||||
alignItems="center"
|
||||
className={classNames(className, 'w-full h-full')}
|
||||
|
||||
@@ -14,12 +14,12 @@ export function useExportData() {
|
||||
|
||||
return useMutation({
|
||||
mutationFn: async () => {
|
||||
const rootDir = await save(saveArgs);
|
||||
if (rootDir == null) {
|
||||
const exportPath = await save(saveArgs);
|
||||
if (exportPath == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
await invoke('export_data', { workspaceId, rootDir });
|
||||
await invoke('export_data', { workspaceId, exportPath });
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user