Commit d360706
committed
fix(onlyoffice): remove dead edit toggle button from toolbar
The "Edit" button (next to "Share") was a view->edit toggle, disabled
whenever editorMode !== 'view'. Since the provider force-edits as soon
as the user has write access on the io.cozy.files document, the button
is permanently greyed out wherever it is shown (mobile/desktop,
private/public), exactly like the ReadOnlyFab removed previously.
Its hidden paywall redirect is also already unreachable (only fires in
view mode) and the existing-file paywall is enforced server-side by the
stack returning mode: 'view'; document creation keeps its own paywall
entry points. So nothing functional is lost.
Remove the button, its now-dead helpers and the related i18n keys.
NOTE: the OnlyOffice flows need to be clarified again, there are quite a
few inconsistencies (force-edit vs paywall vs hasWriteAccess vs stack
mode, viewer "open" button without paywall check, etc.).1 parent 6e57cbe commit d360706
4 files changed
Lines changed: 4 additions & 167 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
573 | 572 | | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | 573 | | |
583 | 574 | | |
584 | 575 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
27 | | - | |
| 25 | + | |
28 | 26 | | |
29 | | - | |
30 | | - | |
| 27 | + | |
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
| |||
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | 77 | | |
89 | 78 | | |
90 | 79 | | |
| |||
102 | 91 | | |
103 | 92 | | |
104 | 93 | | |
105 | | - | |
| 94 | + | |
106 | 95 | | |
107 | 96 | | |
108 | | - | |
109 | 97 | | |
110 | 98 | | |
111 | 99 | | |
112 | 100 | | |
113 | 101 | | |
114 | 102 | | |
115 | 103 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 104 | + | |
122 | 105 | | |
123 | 106 | | |
124 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
| |||
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | | - | |
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
| |||
0 commit comments