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

dialogs.openAlert() but without any buttons #1624

Open
nerdess opened this issue Aug 16, 2023 · 0 comments
Open

dialogs.openAlert() but without any buttons #1624

nerdess opened this issue Aug 16, 2023 · 0 comments

Comments

@nerdess
Copy link

nerdess commented Aug 16, 2023

I need to make the UI of a Contentful entry unaccessible in certain conditions and are building a Contentful App to achieve this. I will simply display a sdk.dialogs.openAlert() in those cases, informing the editor that this entry cannot be accessed at the moment.

Unfortunately, all the sdk.dialogs always show at least one button and can therefore be closed. But I do not want to show any button, just the alert.

So I wanted to amend the way dialogs are created (and maybe do a PR eventually). I am struggeling to get the package to work locally though.

I cloned the github repo and are trying npm link but keep getting this error:

npm ERR! command sh -c husky install
npm ERR! sh: husky: command not found

Contentful SDK: install locally with npm link

Maybe a quick guide on how to extend the code of this repo locally would be good! Because I am also a bit confused by all the scoped package names.

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

No branches or pull requests

1 participant