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

readOnly Query Parameter not hiding text editor #591

Closed
mlschuh opened this issue Apr 10, 2023 · 3 comments
Closed

readOnly Query Parameter not hiding text editor #591

mlschuh opened this issue Apr 10, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@mlschuh
Copy link

mlschuh commented Apr 10, 2023

Describe the bug

The readOnly query parameter does not hide the text editor.

How to Reproduce

Go to https://studio.asyncapi.com/?readOnly and see that the editor is still visible.

AsyncAPI Studio Editor Not Hiding

Expected behavior

I'd expect it to hide the editor as shown in this PR: #113

@mlschuh mlschuh added the bug Something isn't working label Apr 10, 2023
@github-actions
Copy link

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@magicmatatjahu
Copy link
Member

magicmatatjahu commented Apr 12, 2023

@mlschuh Hi! That parametr only works when you have also define some AsyncAPI from source, like url or base64 - in other words, readOnly doesn't work with doc save in localStorage (in browser).

Try this https://studio.asyncapi.com/?url=https://raw.githubusercontent.com/asyncapi/spec/master/examples/streetlights-kafka.yml&readOnly=true

@mlschuh
Copy link
Author

mlschuh commented Apr 14, 2023

Ah, I see. Confirmed working that way on the system I'm building up (using the url parameter).

Thank you for clarifying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants