1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

[user setting] modification (#3445)

This commit is contained in:
llj
2019-05-13 12:17:40 +08:00
committed by Daniel Pan
parent 30d7542670
commit 7ad7705b26
5 changed files with 11 additions and 8 deletions

View File

@@ -35,7 +35,7 @@ class DeleteAccount extends React.Component {
<div className="setting-item" id="del-account">
<h3 className="setting-item-heading">{gettext('Delete Account')}</h3>
<p className="mb-2">{gettext('This operation will not be reverted. Please think twice!')}</p>
<button className="btn btn-secondary" onClick={this.confirmDelete}>{gettext('Delete')}</button>
<button className="btn btn-outline-primary" onClick={this.confirmDelete}>{gettext('Delete')}</button>
</div>
{this.state.isConfirmDialogOpen && (
<ModalPortal>

View File

@@ -1,6 +1,5 @@
import React from 'react';
import Select from 'react-select';
import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
import { gettext, siteRoot } from '../../utils/constants';
const {

View File

@@ -39,8 +39,8 @@ class SocialLogin extends React.Component {
<h3 className="setting-item-heading">{gettext('Social Login')}</h3>
<p className="mb-2">{langCode == 'zh-cn' ? '企业微信': 'WeChat Work'}</p>
{socialConnected ?
<a href="#" className="btn btn-secondary" onClick={this.confirmDisconnect}>{gettext('Disconnect')}</a> :
<a href={`${siteRoot}social/login/weixin-work/?next=${encodeURIComponent(socialNextPage)}`} className="btn btn-secondary">{gettext('Connect')}</a>
<a href="#" className="btn btn-outline-primary" onClick={this.confirmDisconnect}>{gettext('Disconnect')}</a> :
<a href={`${siteRoot}social/login/weixin-work/?next=${encodeURIComponent(socialNextPage)}`} className="btn btn-outline-primary">{gettext('Connect')}</a>
}
</div>
{this.state.isConfirmDialogOpen && (

View File

@@ -79,7 +79,7 @@ class UserBasicInfoForm extends React.Component {
<div className="col-sm-5">
<input className="form-control" id="user-name" type="text" name="username" value={loginID} disabled={true} readOnly={true} />
</div>
<p className="col-sm-5 m-0">{gettext('You can use this field at login.')}</p>
<p className="col-sm-5 m-0 input-tip">{gettext('You can use this field at login.')}</p>
</div>
)}
@@ -89,7 +89,7 @@ class UserBasicInfoForm extends React.Component {
<div className="col-sm-5">
<input className="form-control" id="contact-email" type="text" name="contact_email" value={contactEmail} disabled={!enableUserSetContactEmail} readOnly={!enableUserSetContactEmail} onChange={this.handleContactEmailInputChange} />
</div>
<p className="col-sm-5 m-0">{gettext('Your notifications will be sent to this email.')}</p>
<p className="col-sm-5 m-0 input-tip">{gettext('Your notifications will be sent to this email.')}</p>
</div>
)}