mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-01 23:38:37 +00:00
optimize code
This commit is contained in:
parent
c904526506
commit
c4b57a867d
@ -25,8 +25,7 @@ class SystemUserNotificationItem extends React.Component {
|
||||
<div id="info-bar" className="d-flex justify-content-between">
|
||||
<span className="mr-3" aria-hidden="true"></span>
|
||||
<p id="info-bar-info" className="m-0" dangerouslySetInnerHTML={{ __html: this.props.msg }}></p>
|
||||
<button className="close sf2-icon-x1" title={gettext('Close')} aria-label={gettext('Close')}
|
||||
onClick={this.close}></button>
|
||||
<button className="close sf2-icon-x1" title={gettext('Close')} aria-label={gettext('Close')} onClick={this.close}></button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ class NotificationAPI {
|
||||
this.server = server;
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
this.token = token; //none
|
||||
this.token = token;
|
||||
if (this.token && this.server) {
|
||||
this.req = axios.create({
|
||||
baseURL: this.server,
|
||||
|
Loading…
Reference in New Issue
Block a user