Skip to content

[Feat]: Add JS function or variable to let us know we are in editing mode #1903

@ScottKemp

Description

@ScottKemp

Is your feature request related to a problem? Please describe.
I would like to have a JS function (util?) or a gloval variable that lets me know if we are in edit mode. Sometimes we do things differently in edit mode. For instance, maybe a login form needs to auto redirect if already logged in. This is hard to edit/debug if it is always redirecting. I would like to do something like (if (!editMode) redirectToNewURL

Describe the solution you'd like
Either a function in utils or a global variable

Describe alternatives you've considered
Parse the URL. This is hacky and is impossible to make a global JS function to do this as the url object is not available at the global level.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

Javascript FrontendPull requests that update Javascript code

Projects

Status

🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions