Ver código fonte

Updated is_stack to stack_id from revision and setting sections

jnfrati 3 anos atrás
pai
commit
49ba695b22

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

@@ -236,7 +236,7 @@ class RevisionSection extends Component<PropsType, StateType> {
                   "get",
                   "update",
                 ]) ||
-                this.props.chart.is_stack
+                !!this.props.chart.stack_id?.length
               }
               onClick={() =>
                 this.setState({ rollbackRevision: revision.version })

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

@@ -209,7 +209,7 @@ const SettingsSection: React.FC<PropsType> = ({
     console.log(PORTER_IMAGE_TEMPLATES.includes(selectedImageUrl));
     return (
       <>
-        {!currentChart.is_stack &&
+        {!currentChart.stack_id?.length &&
         !PORTER_IMAGE_TEMPLATES.includes(selectedImageUrl) ? (
           <>
             <Heading>Source Settings</Heading>