Merge pull request #5221 from nextcloud/backport/5208/stable32

[stable32] fix(mobile): pass format to SaveAs
This commit is contained in:
Sylwia 2025-12-15 16:04:33 +01:00 committed by GitHub
commit 5a23baa827
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 7 deletions

View file

@ -183,12 +183,7 @@ describe('Direct editing (legacy)', function() {
.should('be.visible') .should('be.visible')
cy.get('.saveas-dialog input[type=text]') cy.get('.saveas-dialog input[type=text]')
.should('be.visible') .should('be.visible')
.should('have.value', 'document.odt') .should('have.value', 'document.rtf')
cy.get('.saveas-dialog input[type=text]')
.clear()
cy.get('.saveas-dialog input[type=text]')
.type('/document.rtf')
cy.get('.saveas-dialog button.button-vue--vue-primary').click() cy.get('.saveas-dialog button.button-vue--vue-primary').click()

View file

@ -474,7 +474,7 @@ const documentsMain = {
SaveAs, SaveAs,
{ {
path: documentsMain.fileName, path: documentsMain.fileName,
format: args.Format, format: args.format,
}, },
(value) => value && PostMessages.sendWOPIPostMessage('loolframe', 'Action_SaveAs', { Filename: value, Notify: true }), (value) => value && PostMessages.sendWOPIPostMessage('loolframe', 'Action_SaveAs', { Filename: value, Notify: true }),
) )