(core) Removing beta tag from ACL rules tools menu

Summary: ACL is no longer a beta feature.

Test Plan: Manual

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D3755
This commit is contained in:
Jarosław Sadziński 2023-01-04 16:17:08 +01:00
parent 8227be513c
commit 15dafb5707

View File

@ -9,7 +9,6 @@ import {createHelpTools, cssLinkText, cssPageEntry, cssPageEntryMain, cssPageEnt
cssTools} from 'app/client/ui/LeftPanelCommon'; cssTools} from 'app/client/ui/LeftPanelCommon';
import {theme} from 'app/client/ui2018/cssVars'; import {theme} from 'app/client/ui2018/cssVars';
import {icon} from 'app/client/ui2018/icons'; import {icon} from 'app/client/ui2018/icons';
import {menuAnnotate} from 'app/client/ui2018/menus';
import {confirmModal} from 'app/client/ui2018/modals'; import {confirmModal} from 'app/client/ui2018/modals';
import {isOwner} from 'app/common/roles'; import {isOwner} from 'app/common/roles';
import {Disposable, dom, makeTestId, Observable, observable, styled} from 'grainjs'; import {Disposable, dom, makeTestId, Observable, observable, styled} from 'grainjs';
@ -37,9 +36,7 @@ export function tools(owner: Disposable, gristDoc: GristDoc, leftPanelOpen: Obse
dom.domComputed(canViewAccessRules, (_canViewAccessRules) => { dom.domComputed(canViewAccessRules, (_canViewAccessRules) => {
return cssPageLink( return cssPageLink(
cssPageIcon('EyeShow'), cssPageIcon('EyeShow'),
cssLinkText(t("Access Rules"), cssLinkText(t("Access Rules")),
menuAnnotate('Beta', cssBetaTag.cls(''))
),
_canViewAccessRules ? urlState().setLinkUrl({docPage: 'acl'}) : null, _canViewAccessRules ? urlState().setLinkUrl({docPage: 'acl'}) : null,
); );
}), }),
@ -193,9 +190,3 @@ const cssExampleCardOpener = styled('div', `
display: none; display: none;
} }
`); `);
const cssBetaTag = styled('div', `
.${cssPageEntry.className}-disabled & {
opacity: 0.4;
}
`);