From 39333953d70e4112ba138c4e37ce4024d7eb3421 Mon Sep 17 00:00:00 2001 From: orangemug Date: Mon, 17 Feb 2020 13:24:14 +0000 Subject: [PATCH] Only show 'switch to layer' button if layer not already selected. --- src/components/App.jsx | 1 + src/components/MessagePanel.jsx | 22 ++++++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/components/App.jsx b/src/components/App.jsx index 3e0158c8..6273df33 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -732,6 +732,7 @@ export default class App extends React.Component { /> : null const bottomPanel = (this.state.errors.length + this.state.infos.length) > 0 ? - Layer '{layerId}': {parsed.data.message} —  - + Layer '{layerId}': {parsed.data.message} + {currentLayer.id !== layerId && + <> +  —  + + + } ); }