add new storage modal and validation for storage creation
This commit is contained in:
@@ -66,11 +66,18 @@ export const StorageRow = ({ storage }: StorageRowProps) => {
|
||||
<td>{formatDate(storage.updated_at)}</td>
|
||||
<td>
|
||||
<Button
|
||||
color="primary"
|
||||
onClick={form.handleSubmit}
|
||||
disabled={!isDirty || mutation.isPending}
|
||||
>
|
||||
{mutation.isPending ? "..." : "Save"}
|
||||
</Button>
|
||||
<Button
|
||||
color="danger"
|
||||
onClick={() => console.log("Delete Storage: " + storage.uuid)}
|
||||
>
|
||||
{mutation.isPending ? "..." : "Delete"}
|
||||
</Button>
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user