Skip to content

Commit 28e246e

Browse files
clean up
1 parent 44a7a26 commit 28e246e

File tree

3 files changed

+8
-21
lines changed

3 files changed

+8
-21
lines changed

web/main/authorStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ export function getStoredAuthor(): StoredAuthor | null {
1717

1818
export function setStoredAuthor(author: StoredAuthor): void {
1919
store.set(AUTHOR_KEY, author);
20-
}
20+
}

web/main/background.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ import { startServer } from "./doltServer";
1919
import { createWindow } from "./helpers/createWindow";
2020
import { initMenu } from "./helpers/menu";
2121
import { registerAgentIpcHandlers, cleanupAgent } from "./agent";
22-
import { getStoredAuthor, setStoredAuthor, StoredAuthor } from "./authorStorage";
22+
import {
23+
getStoredAuthor,
24+
setStoredAuthor,
25+
StoredAuthor,
26+
} from "./authorStorage";
2327
import {
2428
getErrorMessage,
2529
removeDoltServerFolder,
@@ -250,9 +254,8 @@ ipcMain.handle("get-headers", (event, arg) => {
250254

251255
ipcMain.handle("get-commit-author", () => getStoredAuthor());
252256

253-
ipcMain.handle(
254-
"set-commit-author",
255-
(_, author: StoredAuthor) => setStoredAuthor(author),
257+
ipcMain.handle("set-commit-author", (_, author: StoredAuthor) =>
258+
setStoredAuthor(author),
256259
);
257260

258261
ipcMain.handle("api-config", async () => {

web/renderer/components/StatusWithOptions/CommitModal.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -111,22 +111,6 @@ export default function CommitModal(props: Props) {
111111
disabled={hasHeaders}
112112
light
113113
/>
114-
{hasHeaders && (
115-
<p className={css.authorNote}>
116-
Author is set from request headers and cannot be edited.
117-
</p>
118-
)}
119-
{!hasHeaders && !isElectron && (
120-
<p className={css.authorNote}>
121-
Optional. If not provided, the SQL user will be used as the commit
122-
author.
123-
</p>
124-
)}
125-
{!hasHeaders && isElectron && (
126-
<p className={css.authorNote}>
127-
Optional. Author will be saved for future commits.
128-
</p>
129-
)}
130114
</div>
131115
</div>
132116
</FormModal>

0 commit comments

Comments
 (0)