Skip to content

dialogs.openAlert() but without any buttons #1624

Open
@nerdess

Description

@nerdess

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions