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

add bool getters for checking if can undo/redo an action #111

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

Conversation

justintunev7
Copy link

@justintunev7 justintunev7 commented Oct 4, 2024

Changes

Expose canUndo and canRedo bool getters in SignatureController.

Why?

When providing undo/redo buttons, I'd like to be able to disable a button if there aren't any actions to undo/redo.

Demo use case (notice undo/redo buttons are always enabled because this functionality wasn't exposed before):
image

@HeropolisDa2ny
Copy link

HeropolisDa2ny commented Dec 18, 2024

@ethael @MartinHlavna could you please accept this PR it's been a long time it's been opened and it's really useful.
Could you regenerate a version for this PR please ? (Also I've seen issues from people struggling with image and svg package versions - it's quite quick to fix)

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