mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 05:39:59 +00:00
Metadata views (#6203)
* wip * wip: table finished * wip * feat: metadata views * update models
This commit is contained in:
@@ -6,6 +6,7 @@ import toaster from '../../components/toast';
|
||||
import seahubMetadataAPI from './seahub-metadata-api';
|
||||
import { hideMenu, showMenu } from '../context-menu/actions';
|
||||
import TextTranslation from '../../utils/text-translation';
|
||||
import { siteRoot } from '../../utils/constants';
|
||||
|
||||
const propTypes = {
|
||||
repoID: PropTypes.string.isRequired,
|
||||
@@ -103,7 +104,8 @@ class MetadataManageView extends React.Component {
|
||||
};
|
||||
|
||||
viewMetadata = () => {
|
||||
|
||||
let server = siteRoot.substring(0, siteRoot.length-1);
|
||||
window.open(server + '/repos/' + this.props.repoID + '/metadata/table-view/', '_blank');
|
||||
};
|
||||
|
||||
render() {
|
||||
@@ -120,7 +122,7 @@ class MetadataManageView extends React.Component {
|
||||
onClick={this.onClick}
|
||||
onContextMenu={this.onItemContextMenu}
|
||||
>
|
||||
<div className="tree-node-text">{gettext('Metadata View')}
|
||||
<div className="tree-node-text">{gettext('Metadata Views')}
|
||||
<div className="left-icon">
|
||||
<i className="tree-node-icon">
|
||||
<span class="sf2-icon-cog2" aria-hidden="true" />
|
||||
|
Reference in New Issue
Block a user