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>
</DialogContent>
<DialogActions>
<Button onClick={handleClose}>Cancel</Button>
<LoadingButton onClick={onSubmit} loading={sending} disabled={unchanged || sending || refreshing || refreshingState}>
<Button
onClick={handleClose}
sx={{ position: "unset" }}
>
Cancel
</Button>
<LoadingButton
onClick={onSubmit}
loading={sending} disabled={unchanged || sending || refreshing || refreshingState}
sx={{ position: "unset" }}
>
Apply
</LoadingButton>
</DialogActions>

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

@ -407,7 +407,7 @@ export default function NavDrawer() {
var newSearchData = [];
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 vNetResults = orderBy(vNetFiltered, 'phrase', 'asc');
@ -419,7 +419,7 @@ export default function NavDrawer() {
}
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 vHubResults = orderBy(vHubFiltered, 'phrase', 'asc');