Преглед на файлове

volume streaming err msg

Sebastian Bittrich преди 3 години
родител
ревизия
ed2f0b34c9
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/mol-plugin-ui/structure/volume.tsx

+ 2 - 2
src/mol-plugin-ui/structure/volume.tsx

@@ -77,9 +77,9 @@ export class VolumeStreamingControls extends CollapsableControls<{}, VolumeStrea
         const rootCell = root && pivot.cell.parent.cells.get(root);
 
         const simpleApply = rootCell && rootCell.status === 'error'
-            ? { header: 'Error enabling', icon: ErrorSvg, title: rootCell.errorText }
+            ? { header: rootCell.errorText?.indexOf('404') === -1 ? 'Error Enabling' : 'No Density Data Available', icon: ErrorSvg, title: rootCell.errorText }
             : rootCell && rootCell.obj?.data.entries.length === 0
-                ? { header: 'Error enabling', icon: ErrorSvg, title: 'No entry for streaming found' }
+                ? { header: 'Error Enabling', icon: ErrorSvg, title: 'No Entry for Streaming Found' }
                 : { header: 'Enable', icon: CheckSvg, title: 'Enable' };
 
         return <ApplyActionControl state={pivot.cell.parent} action={InitVolumeStreaming} initiallyCollapsed={true} nodeRef={pivot.cell.transform.ref} simpleApply={simpleApply} />;