Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disable Freeze panes menu & notebookbar entries on tablets.
The feature is not available there, so it is confusing the users.

Change-Id: I5ecd1ba3c1cf78e54433262d710ee64e38a8bd1e
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
  • Loading branch information
kendy committed Nov 9, 2020
1 parent 1633fae commit 6c2d725
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions loleaflet/src/control/Control.Menubar.js
Expand Up @@ -417,11 +417,11 @@ L.Control.Menubar = L.Control.extend({
{name: _UNO('.uno:ZoomPlus', 'text'), id: 'zoomin', type: 'action'},
{name: _UNO('.uno:ZoomMinus', 'text'), id: 'zoomout', type: 'action',},
{name: _('Reset zoom'), id: 'zoomreset', type: 'action'},
{type: 'separator'},
{name: _UNO('.uno:FreezePanes', 'spreadsheet', true), id: 'FreezePanes', type: 'action', uno: '.uno:FreezePanes'},
{name: _UNO('.uno:FreezeCellsMenu', 'spreadsheet', true), id: 'FreezeCellsMenu', type: 'menu', uno: '.uno:FreezeCellsMenu', menu: [
{name: _UNO('.uno:FreezePanesColumn', 'spreadsheet', true), id: 'FreezePanesColumn', type: 'action', uno: '.uno:FreezePanesColumn'},
{name: _UNO('.uno:FreezePanesRow', 'spreadsheet', true), id: 'FreezePanesRow', type: 'action', uno: '.uno:FreezePanesRow'}
{type: 'separator', tablet: false},
{name: _UNO('.uno:FreezePanes', 'spreadsheet', true), id: 'FreezePanes', type: 'action', uno: '.uno:FreezePanes', tablet: false},
{name: _UNO('.uno:FreezeCellsMenu', 'spreadsheet', true), id: 'FreezeCellsMenu', type: 'menu', uno: '.uno:FreezeCellsMenu', tablet: false, menu: [
{name: _UNO('.uno:FreezePanesColumn', 'spreadsheet', true), id: 'FreezePanesColumn', type: 'action', uno: '.uno:FreezePanesColumn', tablet: false},
{name: _UNO('.uno:FreezePanesRow', 'spreadsheet', true), id: 'FreezePanesRow', type: 'action', uno: '.uno:FreezePanesRow', tablet: false}
]},
{type: 'separator'},
{uno: '.uno:Sidebar'},
Expand Down
8 changes: 4 additions & 4 deletions loleaflet/src/control/Control.NotebookbarCalc.js
Expand Up @@ -2082,7 +2082,7 @@ L.Control.NotebookbarCalc = L.Control.NotebookbarWriter.extend({
}
]
},
{
window.mode.isDesktop()? {
'id': 'freeze-section1',
'type': 'container',
'text': '',
Expand All @@ -2103,8 +2103,8 @@ L.Control.NotebookbarCalc = L.Control.NotebookbarWriter.extend({
]
}
]
},
{
} : {},
window.mode.isDesktop()? {
'id': 'freeze-section2',
'type': 'container',
'text': '',
Expand Down Expand Up @@ -2138,7 +2138,7 @@ L.Control.NotebookbarCalc = L.Control.NotebookbarWriter.extend({
]
}
]
}
} : {}
]
}
]
Expand Down

0 comments on commit 6c2d725

Please sign in to comment.