From 056160edd629372ff93619be7e130a26e2377f9b Mon Sep 17 00:00:00 2001
From: Kai Reinhard <K.Reinhard@micromata.de>
Date: Sun, 16 Dec 2018 15:25:17 +0000
Subject: [PATCH] file lists...
---
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/borgbutler-webapp/src/components/views/archives/FileListPanel.jsx b/borgbutler-webapp/src/components/views/archives/FileListPanel.jsx
index f4842c3..355ec89 100644
--- a/borgbutler-webapp/src/components/views/archives/FileListPanel.jsx
+++ b/borgbutler-webapp/src/components/views/archives/FileListPanel.jsx
@@ -1,11 +1,13 @@
import React from 'react'
-import {getRestServiceUrl, humanFileSize} from '../../../utilities/global';
+import {getRestServiceUrl} from '../../../utilities/global';
import ErrorAlert from '../../general/ErrorAlert';
+import FileListTable from "./FileListTable";
class ArchiveView extends React.Component {
state = {
isFetching: false, activeTab: '1',
+ fileList : undefined
};
componentDidMount = () => {
@@ -23,7 +25,7 @@
failed: false
});
fetch(getRestServiceUrl('archives/filelist', {
- archive: this.props.archiveId,
+ archiveId: this.props.archiveId,
force: forceReload
}), {
method: 'GET',
@@ -35,7 +37,7 @@
.then(json => {
this.setState({
isFetching: false,
- archive: json
+ fileList: json
})
})
.catch(() => this.setState({isFetching: false, failed: true}));
@@ -43,7 +45,6 @@
render = () => {
let content = undefined;
- let archive = this.state.archive;
if (this.state.isFetching) {
content = <i>Loading...</i>;
@@ -56,9 +57,10 @@
title: 'Try again'
}}
/>;
- } else if (this.state.archive) {
+ } else if (this.state.fileList) {
content = <React.Fragment>
- Hurzel;
+ <FileListTable
+ entries={this.state.fileList}/>
</React.Fragment>;
}
return <React.Fragment>
--
Gitblit v1.10.0