@setoelkahfi / svara / commits / 480402a

feat: disabled unimplemented shortcuts/buttons

mellbacon committed Jul 14, 2023 at 14:54 UTC 480402afc14b5f2841a1e13d8ec85139370d30e0
1 file changed +6 -6
src/lib/Header.svelte
+6 -6
@@ -3,8 +3,8 @@
3 import Dropdown from "./utility/Dropdown.svelte";
4 import settings from "./Settings.svelte";
5 import { Settings } from "carbon-icons-svelte";
6 - import { addTab, addEditorTab, tabs, closeActiveTab } from "../lib/EditorTabList.svelte";
7 - import { saveFile, openFile, openFolder, workspaceName } from "./File";
6 + import { addTab, tabs, closeActiveTab } from "../lib/EditorTabList.svelte";
7 + import { workspaceName } from "./File";
8 import { commands } from "../config/commands";
9
10 const items = [
@@ -28,10 +28,10 @@
28 {name: "Replace", disabled: true, shortcut: commands.replace.keybind, action: commands.replace.command},
29 ]},
30 {menuname: "View", children: [
31 - {name: "Command Pallete", disabled: true, shortcut: commands.openCommandPallete.keybind, action: commands.openCommandPallete.command},
32 - {name: "Zoom In", shortcut: commands.zoomIn.keybind, action: commands.zoomIn.command},
33 - {name: "Zoom Out", shortcut: commands.zoomOut.keybind, action: commands.zoomOut.command},
34 - {name: "Reset Zoom", shortcut: "", action: () => {console.warn("Feature not implemented yet.")}},
31 + {name: "Command Pallete", disabled: true, shortcut: commands.openCommandPallete.keybind, action: commands.openCommandPallete.command},
32 + {name: "Zoom In", disabled: true, shortcut: commands.zoomIn.keybind, action: commands.zoomIn.command},
33 + {name: "Zoom Out", disabled: true, shortcut: commands.zoomOut.keybind, action: commands.zoomOut.command},
34 + {name: "Reset Zoom", disabled: true, shortcut: "", action: () => {console.warn("Feature not implemented yet.")}},
35 {name: "Fullscreen", shortcut: commands.fullscreen.keybind, action: commands.fullscreen.command},
36 ]},
37 {menuname: "Run", children: [