mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 11:06:02 +00:00
import export- cancelable, better design
This commit is contained in:
@@ -6,6 +6,7 @@ import TableControl, { TableColumn } from '../utility/TableControl';
|
||||
import formatFileSize from '../utility/formatFileSize';
|
||||
import resolveApi from '../utility/resolveApi';
|
||||
import getElectron from '../utility/getElectron';
|
||||
import ErrorInfo from '../widgets/ErrorInfo';
|
||||
|
||||
export default function RunnerOutputFiles({ runnerId, executeNumber }) {
|
||||
const socket = useSocket();
|
||||
@@ -31,6 +32,10 @@ export default function RunnerOutputFiles({ runnerId, executeNumber }) {
|
||||
|
||||
const electron = getElectron();
|
||||
|
||||
if (!files || files.length == 0) {
|
||||
return <ErrorInfo message="No output files" icon="img alert" />;
|
||||
}
|
||||
|
||||
return (
|
||||
<TableControl rows={files}>
|
||||
<TableColumn fieldName="name" header="Name" />
|
||||
|
||||
Reference in New Issue
Block a user