jusrhee 5 лет назад
Родитель
Сommit
5b3a65e2e3

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

@@ -30,6 +30,13 @@ export default class SettingsSection extends Component<PropsType, StateType> {
     saveValuesStatus: null as (string | null),
   }
 
+  componentDidMount() {
+    let image = this.props.currentChart.config.image;
+    if (image.repository) {
+      this.setState({ selectedImageUrl: image.repository });
+    }
+  }
+
   redeployWithNewImage = (img: string, tag: string) => {
     this.setState({saveValuesStatus: 'loading'})
     let { currentCluster, currentProject } = this.context;

+ 1 - 1
dashboard/src/shared/types.tsx

@@ -28,7 +28,7 @@ export interface ChartType {
       name: string,
     }[],
   },
-  config: string,
+  config: any,
   version: number,
   namespace: string
 }