Shwo a message when some lists are empty
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -2,7 +2,7 @@ import { mdiHarddiskPlus } from "@mdi/js";
 | 
			
		||||
import Icon from "@mdi/react";
 | 
			
		||||
import CheckCircleIcon from "@mui/icons-material/CheckCircle";
 | 
			
		||||
import DeleteIcon from "@mui/icons-material/Delete";
 | 
			
		||||
import { Button, IconButton, Paper, Tooltip } from "@mui/material";
 | 
			
		||||
import { Button, IconButton, Paper, Tooltip, Typography } from "@mui/material";
 | 
			
		||||
import React from "react";
 | 
			
		||||
import { DiskImage } from "../../api/DiskImageApi";
 | 
			
		||||
import { ServerApi } from "../../api/ServerApi";
 | 
			
		||||
@@ -67,6 +67,12 @@ export function VMDisksList(p: {
 | 
			
		||||
        />
 | 
			
		||||
      ))}
 | 
			
		||||
 | 
			
		||||
      {p.vm.file_disks.length === 0 && (
 | 
			
		||||
        <Typography style={{ textAlign: "center", paddingTop: "25px" }}>
 | 
			
		||||
          No disk file yet!
 | 
			
		||||
        </Typography>
 | 
			
		||||
      )}
 | 
			
		||||
 | 
			
		||||
      {p.editable && <Button onClick={addNewDisk}>Add new disk</Button>}
 | 
			
		||||
 | 
			
		||||
      {/* Disk backup */}
 | 
			
		||||
 
 | 
			
		||||
@@ -10,6 +10,7 @@ import {
 | 
			
		||||
  ListItemAvatar,
 | 
			
		||||
  ListItemText,
 | 
			
		||||
  Tooltip,
 | 
			
		||||
  Typography,
 | 
			
		||||
} from "@mui/material";
 | 
			
		||||
import Grid from "@mui/material/Grid";
 | 
			
		||||
import { NWFilter } from "../../api/NWFilterApi";
 | 
			
		||||
@@ -49,6 +50,12 @@ export function VMNetworksList(p: {
 | 
			
		||||
        </div>
 | 
			
		||||
      )}
 | 
			
		||||
 | 
			
		||||
      {p.vm.networks.length === 0 && (
 | 
			
		||||
        <Typography style={{ textAlign: "center", paddingTop: "25px" }}>
 | 
			
		||||
          No network interface defined yet!
 | 
			
		||||
        </Typography>
 | 
			
		||||
      )}
 | 
			
		||||
 | 
			
		||||
      <Grid container spacing={2}>
 | 
			
		||||
        {/* networks list */}
 | 
			
		||||
        {p.vm.networks.map((n, num) => (
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user