You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/08/27 11:51:45 UTC
[apisix-dashboard] branch master updated: fix: ActionBar should not
appear in create/edit route resultview (#419)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 2dd0052 fix: ActionBar should not appear in create/edit route resultview (#419)
2dd0052 is described below
commit 2dd005296ba0236826e041719d84aee73d0d92d9
Author: liuxiran <be...@126.com>
AuthorDate: Thu Aug 27 19:51:34 2020 +0800
fix: ActionBar should not appear in create/edit route resultview (#419)
* fix: ActionBar should not appear in create/edit route resultview
* feat: actionbar component does not show in resultview
---
src/components/ActionBar/ActionBar.tsx | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/components/ActionBar/ActionBar.tsx b/src/components/ActionBar/ActionBar.tsx
index 8e9b246..4337389 100644
--- a/src/components/ActionBar/ActionBar.tsx
+++ b/src/components/ActionBar/ActionBar.tsx
@@ -44,6 +44,11 @@ const ActionBar: React.FC<Props> = ({ step, lastStep, onChange, withResultView }
return null;
}
+ // resultView should not show actionbar
+ if (step > lastStep && withResultView) {
+ return null;
+ }
+
return (
<div style={style}>
<Row gutter={10} justify="end">