From 7866b11e915b53e125e46d03f9c6c3bf99120c4a Mon Sep 17 00:00:00 2001 From: Philipp Otto Date: Fri, 20 Dec 2024 15:01:35 +0100 Subject: [PATCH 1/2] 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, From 1439e9876cff570c559d0f622f87162f45ee429f Mon Sep 17 00:00:00 2001 From: Philipp Otto Date: Fri, 20 Dec 2024 16:12:46 +0100 Subject: [PATCH 2/2] update changelog --- CHANGELOG.unreleased.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 1f0225d766..991d10c336 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -39,5 +39,6 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released ### Removed - Removed support for HTTP API versions 3 and 4. [#8075](https://github.com/scalableminds/webknossos/pull/8075) +- Removed that a warning is shown when a dataset is served from a datastore that was marked with isScratch=true. [#8296](https://github.com/scalableminds/webknossos/pull/8296) ### Breaking Changes