Browse Source

Disable revert button on stack applications

jnfrati 3 years ago
parent
commit
ac1dbd77fd

+ 5 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/RevisionSection.tsx

@@ -232,7 +232,11 @@ class RevisionSection extends Component<PropsType, StateType> {
             <RollbackButton
             <RollbackButton
               disabled={
               disabled={
                 isCurrent ||
                 isCurrent ||
-                !this.props.isAuthorized("application", "", ["get", "update"])
+                !this.props.isAuthorized("application", "", [
+                  "get",
+                  "update",
+                ]) ||
+                this.props.chart.is_stack
               }
               }
               onClick={() =>
               onClick={() =>
                 this.setState({ rollbackRevision: revision.version })
                 this.setState({ rollbackRevision: revision.version })