| | |
| | | import ErrorAlert from '../../general/ErrorAlert'; |
| | | import {IconRefresh} from "../../general/IconComponents"; |
| | | import classNames from "classnames"; |
| | | import FileListTable from "./FileListTable"; |
| | | |
| | | class ArchiveView extends React.Component { |
| | | |
| | |
| | | |
| | | |
| | | fetchArchive = (force) => { |
| | | let forceReload = false; |
| | | if (force && window.confirm('Are you sure you want to reload the archive file list? This may take a long time...')) { |
| | | forceReload = true; |
| | | } |
| | | this.setState({ |
| | | isFetching: true, |
| | | failed: false |
| | |
| | | fetch(getRestServiceUrl('archives', { |
| | | repo: this.state.repoId, |
| | | archive: this.state.archiveId, |
| | | force: force |
| | | force: forceReload |
| | | }), { |
| | | method: 'GET', |
| | | headers: { |
| | |
| | | </Table> |
| | | </TabPane> |
| | | <TabPane tabId={'2'}> |
| | | Hurzel |
| | | <FileListTable |
| | | entries={this.props.entries} |
| | | /> |
| | | </TabPane> |
| | | </TabContent> |
| | | </React.Fragment>; |