(core) updates from grist-core

This commit is contained in:
Paul Fitzpatrick
2024-06-03 12:31:22 -04:00
11 changed files with 349 additions and 67 deletions

View File

@@ -237,8 +237,8 @@ Please log in as an administrator.`)),
private _buildAuthenticationNotice(owner: IDisposableOwner) {
return t('Grist allows different types of authentication to be configured, including SAML and OIDC. \
We recommend enabling one of these if Grist is accessible over the network or being made available \
to multiple people.');
We recommend enabling one of these if Grist is accessible over the network or being made available \
to multiple people.');
}
private _buildUpdates(owner: MultiHolder) {

View File

@@ -118,7 +118,7 @@ export class AppHeader extends Disposable {
// Show 'Organization Settings' when on a home page of a valid org.
(!this._docPageModel && this._currentOrg && !this._currentOrg.owner ?
menuItem(() => manageTeamUsersApp({app: this._appModel}),
'Manage Team', testId('orgmenu-manage-team'),
t('Manage Team'), testId('orgmenu-manage-team'),
dom.cls('disabled', !roles.canEditAccess(this._currentOrg.access))) :
// Don't show on doc pages, or for personal orgs.
null),
@@ -153,12 +153,12 @@ export class AppHeader extends Disposable {
(isBillingManager
? menuItemLink(
urlState().setLinkUrl({billing: 'billing'}),
'Billing Account',
t('Billing Account'),
testId('orgmenu-billing'),
)
: menuItem(
() => null,
'Billing Account',
t('Billing Account'),
dom.cls('disabled', true),
testId('orgmenu-billing'),
)