1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 10:58:33 +00:00

update ce EmailInterval (#5615)

This commit is contained in:
欢乐马
2023-08-28 17:00:11 +08:00
committed by GitHub
parent e3b3d28da4
commit b185b7a7f6
2 changed files with 2 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ import React from 'react';
import ReactDom from 'react-dom'; import ReactDom from 'react-dom';
import { navigate } from '@gatsbyjs/reach-router'; import { navigate } from '@gatsbyjs/reach-router';
import { Utils } from './utils/utils'; import { Utils } from './utils/utils';
import { isPro, gettext, siteRoot, mediaUrl, logoPath, logoWidth, logoHeight, siteTitle } from './utils/constants'; import { isPro, isDBSqlite3, gettext, siteRoot, mediaUrl, logoPath, logoWidth, logoHeight, siteTitle } from './utils/constants';
import { seafileAPI } from './utils/seafile-api'; import { seafileAPI } from './utils/seafile-api';
import toaster from './components/toast'; import toaster from './components/toast';
import CommonToolbar from './components/toolbar/common-toolbar'; import CommonToolbar from './components/toolbar/common-toolbar';
@@ -138,7 +138,7 @@ class Settings extends React.Component {
{enableAddressBook && this.state.userInfo && {enableAddressBook && this.state.userInfo &&
<ListInAddressBook userInfo={this.state.userInfo} updateUserInfo={this.updateUserInfo} />} <ListInAddressBook userInfo={this.state.userInfo} updateUserInfo={this.updateUserInfo} />}
<LanguageSetting /> <LanguageSetting />
{isPro && <EmailNotice />} {(isPro || !isDBSqlite3) && <EmailNotice />}
{twoFactorAuthEnabled && <TwoFactorAuthentication />} {twoFactorAuthEnabled && <TwoFactorAuthentication />}
{enableWechatWork && <SocialLogin />} {enableWechatWork && <SocialLogin />}
{enableDingtalk && <SocialLoginDingtalk />} {enableDingtalk && <SocialLoginDingtalk />}

View File

@@ -52,10 +52,8 @@ window.app.pageOptions = {
return list; return list;
})(), })(),
{% if is_pro %}
fileUpdatesEmailInterval: {{ file_updates_email_interval }}, fileUpdatesEmailInterval: {{ file_updates_email_interval }},
collaborateEmailInterval: {{ collaborate_email_interval }}, collaborateEmailInterval: {{ collaborate_email_interval }},
{% endif %}
twoFactorAuthEnabled: {% if two_factor_auth_enabled %} true {% else %} false {% endif %}, twoFactorAuthEnabled: {% if two_factor_auth_enabled %} true {% else %} false {% endif %},
{% if two_factor_auth_enabled %} {% if two_factor_auth_enabled %}