Skip to content

Commit e73a192

Browse files
committed
Remove default name values for new commands
Eliminate need to clear "New Command" and "New Group" text when adding new items fix Need to improve so that when adding a new command or new group, the command name is displayed only as a placeholder. fix #59
1 parent d291698 commit e73a192

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/web-view/src/hooks/use-command-operations.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const useCommandOperations = (
2626
const addCommand = useCallback(() => {
2727
const newCommand: ButtonConfig = {
2828
command: "",
29-
name: "New Command",
29+
name: "",
3030
useVsCodeApi: false,
3131
};
3232
onChange([...commands, newCommand]);
@@ -36,7 +36,7 @@ export const useCommandOperations = (
3636
const newGroup: ButtonConfig = {
3737
executeAll: false,
3838
group: [],
39-
name: "New Group",
39+
name: "",
4040
};
4141
onChange([...commands, newGroup]);
4242
}, [commands, onChange]);

0 commit comments

Comments
 (0)