Skip to content

Commit 9ac519b

Browse files
committed
Moved export to beside the mode selector pulldown
1 parent f8f63c5 commit 9ac519b

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

webview-ui/src/components/modes/ModesView.tsx

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -595,27 +595,6 @@ const ModesView = ({ onDone }: ModesViewProps) => {
595595
</Button>
596596
</StandardTooltip>
597597

598-
<StandardTooltip content={t("prompts:exportMode.title")}>
599-
<Button
600-
variant="ghost"
601-
size="icon"
602-
onClick={() => {
603-
const currentMode = getCurrentMode()
604-
if (currentMode?.slug && !isExporting) {
605-
setIsExporting(true)
606-
vscode.postMessage({
607-
type: "exportMode",
608-
slug: currentMode.slug,
609-
})
610-
}
611-
}}
612-
disabled={isExporting}
613-
title={t("prompts:exportMode.title")}
614-
data-testid="export-mode-toolbar-button">
615-
<Upload className="h-4 w-4" />
616-
</Button>
617-
</StandardTooltip>
618-
619598
<StandardTooltip content={t("prompts:modes.importMode")}>
620599
<Button
621600
variant="ghost"
@@ -737,6 +716,26 @@ const ModesView = ({ onDone }: ModesViewProps) => {
737716
</Command>
738717
</PopoverContent>
739718
</Popover>
719+
<StandardTooltip content={t("prompts:exportMode.title")}>
720+
<Button
721+
variant="ghost"
722+
size="icon"
723+
onClick={() => {
724+
const currentMode = getCurrentMode()
725+
if (currentMode?.slug && !isExporting) {
726+
setIsExporting(true)
727+
vscode.postMessage({
728+
type: "exportMode",
729+
slug: currentMode.slug,
730+
})
731+
}
732+
}}
733+
disabled={isExporting}
734+
title={t("prompts:exportMode.title")}
735+
data-testid="export-mode-toolbar-button">
736+
<Upload className="h-4 w-4" />
737+
</Button>
738+
</StandardTooltip>
740739
</div>
741740
{/* API Configuration - Moved Here */}
742741
<div className="mb-3">

0 commit comments

Comments
 (0)