From 7866b11e915b53e125e46d03f9c6c3bf99120c4a Mon Sep 17 00:00:00 2001 From: Philipp Otto Date: Fri, 20 Dec 2024 15:01:35 +0100 Subject: [PATCH] remove isscratch banner --- .../view/layouting/tracing_layout_view.tsx | 32 ++----------------- 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/frontend/javascripts/oxalis/view/layouting/tracing_layout_view.tsx b/frontend/javascripts/oxalis/view/layouting/tracing_layout_view.tsx index f196944b1d..4971fe971c 100644 --- a/frontend/javascripts/oxalis/view/layouting/tracing_layout_view.tsx +++ b/frontend/javascripts/oxalis/view/layouting/tracing_layout_view.tsx @@ -1,5 +1,4 @@ -import { WarningFilled } from "@ant-design/icons"; -import { Alert, Layout, Tooltip } from "antd"; +import { Layout } from "antd"; import ErrorHandling from "libs/error_handling"; import Request from "libs/request"; import Toast from "libs/toast"; @@ -256,8 +255,7 @@ class TracingLayoutView extends React.PureComponent { this.props.is2d, ); const currentLayoutNames = this.getLayoutNamesFromCurrentView(layoutType); - const { isDatasetOnScratchVolume, isUpdateTracingAllowed, distanceMeasurementTooltipPosition } = - this.props; + const { isUpdateTracingAllowed, distanceMeasurementTooltipPosition } = this.props; const createNewTracing = async ( files: Array, @@ -322,31 +320,6 @@ class TracingLayoutView extends React.PureComponent { autoSaveLayouts: this.props.autoSaveLayouts, }} /> - {isDatasetOnScratchVolume ? ( - - - Dataset is on tmpscratch!{" "} - - - } - type="error" - /> - - ) : null} ) : null} @@ -401,7 +374,6 @@ function mapStateToProps(state: OxalisState) { isUpdateTracingAllowed: state.tracing.restrictions.allowUpdate, showVersionRestore: state.uiInformation.showVersionRestore, storedLayouts: state.uiInformation.storedLayouts, - isDatasetOnScratchVolume: state.dataset.dataStore.isScratch, datasetId: state.dataset.id, is2d: is2dDataset(state.dataset), displayName: state.tracing.name ? state.tracing.name : state.dataset.name,