diff --git a/surfsense_web/components/ui/fixed-toolbar-buttons.tsx b/surfsense_web/components/ui/fixed-toolbar-buttons.tsx index c3b421a63..91fbdb306 100644 --- a/surfsense_web/components/ui/fixed-toolbar-buttons.tsx +++ b/surfsense_web/components/ui/fixed-toolbar-buttons.tsx @@ -101,28 +101,30 @@ export function FixedToolbarButtons() { - {/* Save button — appears when in editing mode with unsaved changes */} - {onSave && hasUnsavedChanges && ( - - - {isSaving ? ( - - ) : ( - - )} - - - )} )}
+ {/* Save button — only in edit mode with unsaved changes */} + {!readOnly && onSave && hasUnsavedChanges && ( + + + {isSaving ? ( + + ) : ( + + )} + + + )} + + {/* Mode toggle */} {canToggleMode && ( diff --git a/surfsense_web/components/ui/insert-toolbar-button.tsx b/surfsense_web/components/ui/insert-toolbar-button.tsx index 452110df5..c5ae049a1 100644 --- a/surfsense_web/components/ui/insert-toolbar-button.tsx +++ b/surfsense_web/components/ui/insert-toolbar-button.tsx @@ -195,7 +195,7 @@ export function InsertToolbarButton(props: DropdownMenuProps) { {groups.map(({ group, items }) => ( diff --git a/surfsense_web/components/ui/turn-into-toolbar-button.tsx b/surfsense_web/components/ui/turn-into-toolbar-button.tsx index f5aaa9dd4..546884113 100644 --- a/surfsense_web/components/ui/turn-into-toolbar-button.tsx +++ b/surfsense_web/components/ui/turn-into-toolbar-button.tsx @@ -155,7 +155,7 @@ export function TurnIntoToolbarButton(props: DropdownMenuProps) { { e.preventDefault(); editor.tf.focus();