Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WiP] Add top menu to app #557

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

[WiP] Add top menu to app #557

wants to merge 7 commits into from

Conversation

guergana
Copy link
Collaborator

Copy link

cloudflare-workers-and-pages bot commented Sep 22, 2024

Deploying opendataeditor with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8c37e64
Status: ✅  Deploy successful!
Preview URL: https://d806a550.opendataeditor.pages.dev
Branch Preview URL: https://417-top-menu.opendataeditor.pages.dev

View logs

@roll
Copy link
Collaborator

roll commented Sep 23, 2024

I guess to get actual implementation of this you need to pass all the actions and store changes through the electron bridge which is quite a task

@guergana
Copy link
Collaborator Author

I guess to get actual implementation of this you need to pass all the actions and store changes through the electron bridge which is quite a task

@roll yes, and I am stuck. I would appreciate your help since the code I have currently in this PR is supposed to work but it isn't working 😭 do you have any suggestions of what I might be doing wrong?

submenu: [
{ role: 'about' },
{ role: 'quit' }
] as MenuItemConstructorOptions[]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to use type validation instead of type inforcement like:

const template: Electron.MenuItemConstructorOptions[] // or what is correct here

Otherwise using as will silently hide all configuration errors

@roll
Copy link
Collaborator

roll commented Sep 30, 2024

@guergana
No problem, I'm looking at it right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ODE - Top menu options
2 participants