15672: Shows "no subprocesses" message at subprocess panel when required.
[arvados-workbench2.git] / src / views / subprocess-panel / subprocess-panel-root.tsx
index fac421bc6891de89dd534429a1790916d9e9f11f..2d37ccb36d02d5dd41dabaeb01a53fb8f33f02a8 100644 (file)
@@ -74,6 +74,11 @@ export interface SubprocessPanelActionProps {
 
 type SubprocessPanelProps = SubprocessPanelActionProps & SubprocessPanelDataProps;
 
+const DEFAULT_VIEW_MESSAGES = [
+    'No subprocesses available for listing.',
+    'The current process may not have any or none matches current filtering.'
+];
+
 export const SubprocessPanelRoot = (props: SubprocessPanelProps) => {
     return <DataExplorer
         id={SUBPROCESS_PANEL_ID}
@@ -84,6 +89,6 @@ export const SubprocessPanelRoot = (props: SubprocessPanelProps) => {
         dataTableDefaultView={
             <DataTableDefaultView
                 icon={ProcessIcon}
-                messages={['This process has no subprocesses.']} />
+                messages={DEFAULT_VIEW_MESSAGES} />
         } />;
 };
\ No newline at end of file