UI: enter edit mode in write protected file with edit button(mobile)#13090
UI: enter edit mode in write protected file with edit button(mobile)#13090caolanm merged 1 commit intoCollaboraOnline:masterfrom
Conversation
There was a problem hiding this comment.
This seems to be only affecting Tablet & Mobile ( I think how the other PR was also meant for that #10657 ),
I have tested and it seems to work as expected (similarly as it works on LO): if a user sets a document to open as view-only it can be switch to edit mode upon pressing a button (in the case on online pencil button)
UI: enter edit mode in write protected file with edit button
This only works on Tablet/mobile as on desktop the edit button doesn't appear in that situation, (I will file this as a follow up: #13125 ).
having pencil edit button and another button in menu to enter
the edit mode is redundant
I'm confused about this sentence. Which other button in menu? It seems by reading the commit message that a menu entry of some kind was removed but that is not the case by looking at the code.
Can you please re-write the commit message so it's a bit more clear?
test document:
Write_protect.odt
Before:
Peek_2024-09-26_09-48.mp4
After: Now, Pressing the pencil button effectively switches to edit mode.
d2430e3 to
d7d57e0
Compare
by default documents are opened in read only mode in mobile to prevent accidental editing. This read only mode is different from when file is actually set with permission read-only(in desktop Edit -> Edit mode) Currently online does not have any button equivalent to the desktop to enter the edit mode, neither in desktop browser nor in mobile. Without this patch if file is read only and user presses the pencil button, UI changes to edit mode but file still can not be edited because of restricted permissions. Signed-off-by: Pranam Lashkari <lpranam@collabora.com> Change-Id: Id2f9b787e4a6f6456c4d192987d2650a3b2b27d0
d7d57e0 to
34f5f61
Compare
|
Updated description and commit message, hopefully it makes things clear. |
pedropintosilva
left a comment
There was a problem hiding this comment.
It works, now on mobile when opening a Write_protect.odt the user can press the edit FAB to edit the file.
This only works on Tablet/mobile as on desktop the edit button doesn't appear in that situation, (I will file this as a follow up: #13125 ).
So, We should also add the pencil FAB for when opening the file in Collabora Online Desktop/laptop -> possible follow up
caolanm
left a comment
There was a problem hiding this comment.
Seems to make sense to me
by default documents are opened in read only mode in mobile
to prevent accidental editing.
This read only mode is different from when file is actually
set with permission read-only(in desktop Edit -> Edit mode)
Currently online does not have any button equivalent to the desktop
to enter the edit mode, neither in desktop browser nor in mobile.
Without this patch if file is read only and user presses the pencil button,
UI changes to edit mode but file still can not be edited because of
restricted permissions.
Change-Id: Id2f9b787e4a6f6456c4d192987d2650a3b2b27d0
Checklist
make prettier-writeand formatted the code.make checkmake runand manually verified that everything looks okay