mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Merge pull request #20848 from overleaf/jdt-hide-wf-in-settings-from-no-ai
hiding wf in settings from users with a blocking policy GitOrigin-RevId: 8d640a53d7bbbcd809604f07bbd4bb0ab6939c03
This commit is contained in:
parent
3e5f9517c8
commit
1426525e8d
1 changed files with 4 additions and 1 deletions
|
@ -22,6 +22,7 @@ function LinkingSection() {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
const { subscriptions } = useSSOContext()
|
const { subscriptions } = useSSOContext()
|
||||||
const ssoErrorMessage = getMeta('ol-ssoErrorMessage')
|
const ssoErrorMessage = getMeta('ol-ssoErrorMessage')
|
||||||
|
const cannotUseAi = getMeta('ol-cannot-use-ai')
|
||||||
const projectSyncSuccessMessage = getMeta('ol-projectSyncSuccessMessage')
|
const projectSyncSuccessMessage = getMeta('ol-projectSyncSuccessMessage')
|
||||||
|
|
||||||
// hide linking widgets in CI
|
// hide linking widgets in CI
|
||||||
|
@ -47,7 +48,9 @@ function LinkingSection() {
|
||||||
oauth2ServerComponents
|
oauth2ServerComponents
|
||||||
)
|
)
|
||||||
|
|
||||||
const haslangFeedbackLinkingWidgets = langFeedbackLinkingWidgets.length
|
// since we only have Writefull here currently, we should hide the whole section if they cant use ai
|
||||||
|
const haslangFeedbackLinkingWidgets =
|
||||||
|
langFeedbackLinkingWidgets.length && !cannotUseAi
|
||||||
const hasIntegrationLinkingSection =
|
const hasIntegrationLinkingSection =
|
||||||
renderSyncSection && allIntegrationLinkingWidgets.length
|
renderSyncSection && allIntegrationLinkingWidgets.length
|
||||||
const hasReferencesLinkingSection = referenceLinkingWidgets.length
|
const hasReferencesLinkingSection = referenceLinkingWidgets.length
|
||||||
|
|
Loading…
Reference in a new issue