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

feat: Exit Button #6763

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Unanemouslyanonymous
Copy link

@Unanemouslyanonymous Unanemouslyanonymous commented Nov 16, 2024

This feature adds an exit Button to the top right of the toolbar, making it easy for the user to nav back to the home, initially the user had to edit the browser endpoints inorder to moveback to the home page. now with the exit button it is pretty much a click away!
This is my first OSS contribution, changes are welcome

@Unanemouslyanonymous
Copy link
Author

Screenshot 2024-11-16 104001

helper.exitPad = async () => {
const button = helper.exitButton();
button.trigger('click');
await helper.waitForPromise(() => window.location.pathname === '/');
Copy link
Member

Choose a reason for hiding this comment

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

A test would be good for that :)

@@ -217,3 +217,7 @@ exports.focusOnLine = (ace) => {
}
// End of setSelection / set Y position of editor
};

// toolbar.registerCommand('exit', () => {
Copy link
Member

Choose a reason for hiding this comment

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

I think this can be left out

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.

2 participants