From 877112a05b3331caf6e2e5af8fbe0ff03ca6fb48 Mon Sep 17 00:00:00 2001 From: Ido Rosenzwig Date: Thu, 12 Sep 2019 17:49:21 +0300 Subject: [PATCH] Add 'Virtual Machines' label to the vm list page Display 'No Virtual Machines Found' label when there are no VMs to present instead of showing just 'Not Found' label. Fixes: https://bugzilla.redhat.com/1743459 Signed-off-by: Ido Rosenzwig --- frontend/packages/kubevirt-plugin/src/components/vms/vm.tsx | 1 + frontend/public/components/factory/list-page.jsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/packages/kubevirt-plugin/src/components/vms/vm.tsx b/frontend/packages/kubevirt-plugin/src/components/vms/vm.tsx index 9d1d83e70ad..fecaf6cefb6 100644 --- a/frontend/packages/kubevirt-plugin/src/components/vms/vm.tsx +++ b/frontend/packages/kubevirt-plugin/src/components/vms/vm.tsx @@ -182,6 +182,7 @@ const VirtualMachinesPageComponent: React.FC = (props) createProps={getCreateProps({ namespace, hasCreateVMWizardsSupport })} resources={resources} flatten={flatten} + label={VirtualMachineModel.labelPlural} /> ); }; diff --git a/frontend/public/components/factory/list-page.jsx b/frontend/public/components/factory/list-page.jsx index 105aa9e5f16..680de13ac44 100644 --- a/frontend/public/components/factory/list-page.jsx +++ b/frontend/public/components/factory/list-page.jsx @@ -425,7 +425,7 @@ export const ListPage = withFallback((props) => { ListPage.displayName = 'ListPage'; -/** @type {React.SFC<{canCreate?: boolean, createButtonText?: string, createProps?: any, flatten?: Function, title?: string, showTitle?: boolean, helpText?: any, filterLabel?: string, textFilter?: string, rowFilters?: any[], resources: any[], ListComponent: React.ComponentType, namespace?: string, customData?: any, badge?: React.ReactNode >} */ +/** @type {React.SFC<{canCreate?: boolean, createButtonText?: string, createProps?: any, flatten?: Function, title?: string, label?: string, showTitle?: boolean, helpText?: any, filterLabel?: string, textFilter?: string, rowFilters?: any[], resources: any[], ListComponent: React.ComponentType, namespace?: string, customData?: any, badge?: React.ReactNode >} */ export const MultiListPage = (props) => { const { autoFocus,