1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-20 14:03:36 +03:00

M #-: Filter backup datastores (#2785)

Now only shows datastores of type backup in the VM backup dialog.
This commit is contained in:
vichansson 2023-10-24 18:54:21 +03:00 committed by GitHub
parent a1a19c7a63
commit 52067ecfc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,7 @@ const Content = ({ data, app }) => {
displaySelectedRows
pageSize={5}
getRowId={(row) => String(row.NAME)}
filter={(DATA) => DATA.filter((ds) => ds.TYPE === '3')}
initialState={{
selectedRowIds: { [NAME]: true },
filters: [{ id: 'TYPE', value: 'BACKUP_DS' }],