Skip to content

Commit 259bf72

Browse files
fix: Add help option in main menu
1 parent 3977218 commit 259bf72

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

frontend/src/components/MainMenu.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@
2828
icon: isDark ? 'sun' : 'moon',
2929
},
3030
{ label: 'Settings', onClick: () => $emit('showSettings'), icon: 'settings' },
31+
3132
{
32-
label: 'Apps',
33-
component: AppsMenu,
34-
icon: 'grid',
33+
label: 'Help',
34+
onClick: () => {
35+
// @ts-ignore
36+
window.open('https://t.me/frappebuilder');
37+
},
38+
icon: 'info',
3539
},
3640
],
3741
},
@@ -66,7 +70,6 @@
6670
</Dropdown>
6771
</template>
6872
<script setup lang="ts">
69-
import AppsMenu from "@/components/AppsMenu.vue";
7073
import useStore from "@/store";
7174
import { BuilderPage } from "@/types/Builder/BuilderPage";
7275
import { useDark, useToggle } from "@vueuse/core";

frontend/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ app.use(FrappeUI);
2020
app.use(pinia);
2121

2222
window.name = "frappe-builder";
23+
app.config.globalProperties.window = window;
2324

2425
app.component("Button", Button);
2526
app.component("BuilderButton", BuilderButton);

frontend/src/pages/PageBuilderDashboard.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,20 @@
5858
},
5959
],
6060
},
61+
{
62+
group: 'Help',
63+
hideLabel: true,
64+
items: [
65+
{
66+
label: 'Help',
67+
onClick: () => {
68+
// @ts-ignore
69+
window.open('https://t.me/frappebuilder');
70+
},
71+
icon: 'info',
72+
},
73+
],
74+
},
6175
]"
6276
size="sm"
6377
class="flex-1 [&>div>div>div]:w-full"

0 commit comments

Comments
 (0)