Skip to content

Conversation

@danxuliu
Copy link
Member

@danxuliu danxuliu commented Jan 6, 2026

Like the save button in the main toolbar, the save button in the secondary toolbar is hidden by default and has to be explicitly shown when needed.

The save button in the secondary toolbar also needs to be handled in the same way as the one in the main toolbar regarding being enabled or disabled, replacing the default download icon with a save icon, and showing a loading icon instead of the save icon while the file is being saved.

How to test

Result with this pull request

The save button is shown. It is initially disabled, and it will be enabled once an annotation is added. Clicking on it disables it again and shows a loading spinner while the file is being uploaded. The loading icon is replaced by the save icon once the upload finishes.

Result without this pull request

The save button is not shown

Like the save button in the main toolbar, the save button in the
secondary toolbar is hidden by default and has to be explicitly shown
when needed.

The save button in the secondary toolbar also needs to be handled in the
same way as the one in the main toolbar regarding being enabled or
disabled, replacing the default download icon with a save icon, and
showing a loading icon instead of the save icon while the file is being
saved.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu
Copy link
Member Author

danxuliu commented Jan 6, 2026

/compile /

Signed-off-by: nextcloud-command <[email protected]>
@danxuliu danxuliu marked this pull request as ready for review January 6, 2026 05:30
@danxuliu danxuliu requested review from emberfiend and szaimen January 6, 2026 05:30
@danxuliu
Copy link
Member Author

danxuliu commented Jan 6, 2026

/backport to stable32

@danxuliu
Copy link
Member Author

danxuliu commented Jan 6, 2026

/backport to stable31

@szaimen
Copy link
Collaborator

szaimen commented Jan 12, 2026

Hey @danxuliu thanks for the fix! Does this fix #1116? :)

@danxuliu
Copy link
Member Author

Hey @danxuliu thanks for the fix! Does this fix #1116? :)

Unfortunately not, it is a different issue ;-) #1116 needs a newer PDF.js version

Copy link
Collaborator

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

🐘

@danxuliu danxuliu merged commit 7df190b into master Jan 13, 2026
43 checks passed
@danxuliu danxuliu deleted the fix-save-button-not-shown-in-secondary-toolbar-for-editable-files branch January 13, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants