From c4a08913f9e054e5413cb915672663ee4c603f0d Mon Sep 17 00:00:00 2001
From: Kai Reinhard <K.Reinhard@micromata.de>
Date: Fri, 18 Jan 2019 07:09:18 +0000
Subject: [PATCH] Repo config...
---
borgbutler-webapp/src/components/views/repos/RepoArchiveListView.jsx | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/borgbutler-webapp/src/components/views/repos/RepoArchiveListView.jsx b/borgbutler-webapp/src/components/views/repos/RepoArchiveListView.jsx
index 32b1b91..e92d80b 100644
--- a/borgbutler-webapp/src/components/views/repos/RepoArchiveListView.jsx
+++ b/borgbutler-webapp/src/components/views/repos/RepoArchiveListView.jsx
@@ -1,12 +1,13 @@
import React from 'react'
import {Nav, NavLink, TabContent, Table, TabPane} from 'reactstrap';
-import { Link } from "react-router-dom";
+import {Link} from "react-router-dom";
import classNames from 'classnames';
import {PageHeader} from '../../general/BootstrapComponents';
import {getRestServiceUrl, humanFileSize} from '../../../utilities/global';
import ErrorAlert from '../../general/ErrorAlert';
import {IconCheck, IconRefresh} from '../../general/IconComponents';
import JobMonitorPanel from '../jobs/JobMonitorPanel';
+import RepoConfigPanel from "./RepoConfigPanel";
class RepoArchiveListView extends React.Component {
@@ -57,7 +58,7 @@
let pageHeader = '';
if (this.state.isFetching) {
- content = <JobMonitorPanel repo={this.state.id} />;
+ content = <JobMonitorPanel repo={this.state.id}/>;
} else if (this.state.failed) {
content = <ErrorAlert
title={'Cannot load Repositories'}
@@ -141,6 +142,12 @@
>
Information
</NavLink>
+ <NavLink
+ className={classNames({active: this.state.activeTab === '3'})}
+ onClick={this.toggleTab('3')}
+ >
+ Configuration
+ </NavLink>
</Nav>
<TabContent activeTab={this.state.activeTab}>
<TabPane tabId={'1'}>
@@ -156,7 +163,7 @@
// Return the element. Also pass key
let loaded = '';
if (archive.fileListAlreadyCached) {
- loaded = <IconCheck />;
+ loaded = <IconCheck/>;
}
return (
<tr key={archive.id}>
@@ -194,6 +201,9 @@
</tbody>
</Table>
</TabPane>
+ <TabPane tabId={'3'}>
+ <RepoConfigPanel id={repo.id}/>
+ </TabPane>
</TabContent>
</React.Fragment>;
--
Gitblit v1.10.0