Skip to content

Commit

Permalink
Update color on save-as button
Browse files Browse the repository at this point in the history
  • Loading branch information
breiler committed Dec 12, 2024
1 parent a814f3c commit 33026d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/editormodal/EditorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import ConfigurationTabs from "../../panels/configuration/ConfigurationTabs";
import { ControllerFile } from "../../services/controllerservice";
import CreateFileModal from "../createfilemodal/CreateFileModal";
import { generateNewFileName } from "../../utils/utils";
import { ButtonType } from "../button";

type EditorModalProps = {
file?: ControllerFile;
Expand Down Expand Up @@ -97,15 +98,15 @@ const EditorModal = ({ file, fileData, onClose, onSave }: EditorModalProps) => {
</Button>
<Button
disabled={isSaving}
buttonType="btn-secondary"
buttonType={ButtonType.WARNING}
onClick={() => setShowSaveAs(true)}
>
<>
<FontAwesomeIcon
icon={faSave as IconDefinition}
style={{ marginRight: "8px" }}
/>{" "}
Save as
Save as...
</>
</Button>
<Button
Expand Down
2 changes: 1 addition & 1 deletion src/pages/filebrowser/FileBrowser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ const FileBrowser = () => {
>
<Button
onClick={() => setShowNewConfigDialog(true)}
buttonType="btn-secondary"
buttonType="btn-warning"
>
<>
<FontAwesomeIcon
Expand Down

0 comments on commit 33026d0

Please sign in to comment.