diff --git a/app/client/ui/DocumentSettings.ts b/app/client/ui/DocumentSettings.ts index b67e066837..ff583067eb 100644 --- a/app/client/ui/DocumentSettings.ts +++ b/app/client/ui/DocumentSettings.ts @@ -13,7 +13,7 @@ import type {DocPageModel} from 'app/client/models/DocPageModel'; import {urlState} from 'app/client/models/gristUrlState'; import {KoSaveableObservable} from 'app/client/models/modelUtil'; import {AdminSection, AdminSectionItem} from 'app/client/ui/AdminPanelCss'; -import {hoverTooltip, showTransientTooltip, withInfoTooltip} from 'app/client/ui/tooltips'; +import {hoverTooltip, showTransientTooltip} from 'app/client/ui/tooltips'; import {bigBasicButton, bigPrimaryButton} from 'app/client/ui2018/buttons'; import {cssRadioCheckboxOptions, radioCheckboxOption} from 'app/client/ui2018/checkbox'; import {colors, mediaSmall, theme} from 'app/client/ui2018/cssVars'; @@ -98,11 +98,7 @@ export class DocSettingsPage extends Disposable { }), dom.create(AdminSectionItem, { id: 'templateMode', - name: withInfoTooltip( - t('Template mode'), - 'documentType', - {variant: 'hover'} - ), + name: t('Template mode'), description: t('Change document type'), value: cssDocTypeContainer( dom.create( diff --git a/app/client/ui/GristTooltips.ts b/app/client/ui/GristTooltips.ts index 85d35da199..651ef4f1cb 100644 --- a/app/client/ui/GristTooltips.ts +++ b/app/client/ui/GristTooltips.ts @@ -46,8 +46,7 @@ export type Tooltip = | 'communityWidgets' | 'twoWayReferences' | 'twoWayReferencesDisabled' - | 'reasignTwoWayReference' - | 'documentType'; + | 'reasignTwoWayReference'; export type TooltipContentFunc = (...domArgs: DomElementArg[]) => DomContents; @@ -188,15 +187,6 @@ see or edit which parts of your document.') ), ...args, ), - documentType: (...args: DomElementArg[]) => cssTooltipContent( - dom('div', - t('Change document type can be useful to transform it into a template or a tutorial') - ), - dom('div', - cssLink({href: commonUrls.helpDocumentType, target: '_blank'}, t('Learn more.')), - ), - ...args, - ), }; export interface BehavioralPromptContent { diff --git a/app/common/gristUrls.ts b/app/common/gristUrls.ts index 3c9edd1a0a..0baa41d76e 100644 --- a/app/common/gristUrls.ts +++ b/app/common/gristUrls.ts @@ -95,7 +95,6 @@ export const commonUrls = { helpFilteringReferenceChoices: "https://support.getgrist.com/col-refs/#filtering-reference-choices-in-dropdown", helpSandboxing: "https://support.getgrist.com/self-managed/#how-do-i-sandbox-documents", helpAPI: 'https://support.getgrist.com/api', - helpDocumentType: 'https://support.getgrist.com/creating-doc/', freeCoachingCall: getFreeCoachingCallUrl(), contactSupport: getContactSupportUrl(), termsOfService: getTermsOfServiceUrl(), diff --git a/static/locales/en.client.json b/static/locales/en.client.json index f68b6d9dbd..c1350e5b95 100644 --- a/static/locales/en.client.json +++ b/static/locales/en.client.json @@ -1237,8 +1237,7 @@ "To allow multiple assignments, change the type of the Reference column to Reference List.": "To allow multiple assignments, change the type of the Reference column to Reference List.", "This limitation occurs when one column in a two-way reference has the Reference type.": "This limitation occurs when one column in a two-way reference has the Reference type.", "To allow multiple assignments, change the referenced column's type to Reference List.": "To allow multiple assignments, change the referenced column's type to Reference List.", - "Two-way references are not currently supported for Formula or Trigger Formula columns": "Two-way references are not currently supported for Formula or Trigger Formula columns", - "Change document type can be useful to transform it into a template or a tutorial": "Change document type can be useful to transform it into a template or a tutorial" + "Two-way references are not currently supported for Formula or Trigger Formula columns": "Two-way references are not currently supported for Formula or Trigger Formula columns" }, "DescriptionConfig": { "DESCRIPTION": "DESCRIPTION"