mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 19:29:56 +00:00
Update tmp (#2373)
* fix file history time * change activities url to dashboard * remove serverRoot from dashboard * fix api name * Repair some components are not display * fix code style * rename file * init seafileAPI * update search * update seafile-editor seafile-js * debug rebase * fix activities loading * fix drafts css * add permission
This commit is contained in:
@@ -49,7 +49,8 @@ class HistoryListItem extends React.Component {
|
||||
|
||||
render() {
|
||||
let item = this.props.item;
|
||||
let time = moment(item.ctime).format('MMMDo Ah:mm');
|
||||
let offset = moment.parseZone(item.ctime).utcOffset();
|
||||
let time = moment(item.ctime).add(offset,'m').format('MMMDo Ah:mm');
|
||||
let isHigtlightItem = false;
|
||||
if (this.props.item && this.props.currentItem) {
|
||||
isHigtlightItem = this.props.item.commit_id === this.props.currentItem.commit_id;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { gettext, filePath } from '../constance';
|
||||
import { gettext, filePath } from '../constants';
|
||||
import URLDecorator from '../../utils/url-decorator';
|
||||
|
||||
const propTypes = {
|
||||
|
Reference in New Issue
Block a user