mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Preserves docPage upon viewAs mode activation, except for acl page
Summary: Switching to view-as should not change current page. Except when using the `View As` dropdown in the acl page, in which case we do want to revert to the default page. This is a follow up task for: D3732 Test Plan: Updated acl nbrowser test. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3773
This commit is contained in:
@@ -381,7 +381,7 @@ export class AccessRules extends Disposable {
|
||||
),
|
||||
bigBasicButton(t('Add User Attributes'), dom.on('click', () => this._addUserAttributes())),
|
||||
bigBasicButton(t('View As'), cssDropdownIcon('Dropdown'),
|
||||
elem => this._aclUsersPopup.attachPopup(elem, {placement: 'bottom-end'}),
|
||||
elem => this._aclUsersPopup.attachPopup(elem, {placement: 'bottom-end', resetDocPage: true}),
|
||||
dom.style('visibility', use => use(this._aclUsersPopup.isInitialized) ? '' : 'hidden')),
|
||||
),
|
||||
cssConditionError({style: 'margin-left: 16px'},
|
||||
|
||||
Reference in New Issue
Block a user