Added quick search exclusions and unset position for editVnets feature buttons

This commit is contained in:
Matthew Garrett 2023-04-06 19:49:45 -07:00
Родитель 36f193b22e
Коммит cab2ee79e1
2 изменённых файлов: 13 добавлений и 4 удалений

Просмотреть файл

@ -652,8 +652,17 @@ export default function EditVnets(props) {
</Box> </Box>
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>
<Button onClick={handleClose}>Cancel</Button> <Button
<LoadingButton onClick={onSubmit} loading={sending} disabled={unchanged || sending || refreshing || refreshingState}> onClick={handleClose}
sx={{ position: "unset" }}
>
Cancel
</Button>
<LoadingButton
onClick={onSubmit}
loading={sending} disabled={unchanged || sending || refreshing || refreshingState}
sx={{ position: "unset" }}
>
Apply Apply
</LoadingButton> </LoadingButton>
</DialogActions> </DialogActions>

Просмотреть файл

@ -407,7 +407,7 @@ export default function NavDrawer() {
var newSearchData = []; var newSearchData = [];
if(vNets) { if(vNets) {
const vNetExclusions = ['id', 'peerings', 'resv', 'subnets', 'size', 'used', 'available', 'utilization', 'parent_space', 'subscription_id', 'tenant_id', 'metadata']; const vNetExclusions = ['id', 'peerings', 'resv', 'type', 'subnets', 'size', 'used', 'available', 'utilization', 'parent_space', 'subscription_id', 'tenant_id', 'metadata'];
const vNetFiltered = objToFilter(vNets, 'Virtual Networks', '/discover/vnet', vNetExclusions); const vNetFiltered = objToFilter(vNets, 'Virtual Networks', '/discover/vnet', vNetExclusions);
const vNetResults = orderBy(vNetFiltered, 'phrase', 'asc'); const vNetResults = orderBy(vNetFiltered, 'phrase', 'asc');
@ -419,7 +419,7 @@ export default function NavDrawer() {
} }
if(vHubs) { if(vHubs) {
const vHubExclusions = ['id', 'peerings', 'vwan_id']; const vHubExclusions = ['id', 'peerings', 'vwan_id', 'resv', 'type', 'size', 'used', 'available', 'utilization', 'parent_space'];
const vHubFiltered = objToFilter(vHubs, 'Virtual Hubs', '/discover/vhub', vHubExclusions); const vHubFiltered = objToFilter(vHubs, 'Virtual Hubs', '/discover/vhub', vHubExclusions);
const vHubResults = orderBy(vHubFiltered, 'phrase', 'asc'); const vHubResults = orderBy(vHubFiltered, 'phrase', 'asc');