Commit 545cc02e authored by Ryo Yamashita's avatar Ryo Yamashita Committed by Yas Naoi
Browse files

Issue #3266446 by Ryo Yamashita, yas: Add the function to edit K8s Schedule...

Issue #3266446 by Ryo Yamashita, yas: Add the function to edit K8s Schedule and other entity in the SPA
parent 2f4f2748
Loading
Loading
Loading
Loading
+1 −6
Changes for modules/cloud_dashboard/cloud_dashboard/src/constant/menu_template.json: 1 added line, 6 removed lines.
Original line number Diff line number Diff line
@@ -1548,12 +1548,7 @@
        {
          "labelName": "Launch Template Name",
          "name": "launch_template_name",
          "type": "join",
          "info": {
            "entityTypeId": "cloud_launch_template",
            "keyColumn": "name",
            "valueColumn": "name"
          }
          "type": "default"
        },
        {
          "labelName": "State",
+4 −0
Changes for modules/cloud_dashboard/cloud_dashboard/src/i18n.ts: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@ const resources: { [key: string]: { translation: { [key: string]: string } } } =
      'Logout': 'Logout',
      'ItemCount': 'Item Count',
      'All': 'All',
      'Save': 'Save',
      'Delete': 'Delete',
    }
  },
  ja: {
@@ -25,6 +27,8 @@ const resources: { [key: string]: { translation: { [key: string]: string } } } =
      'Logout': 'ログアウト',
      'ItemCount': '件数',
      'All': 'すべて',
      'Save': '保存',
      'Delete': '削除',
    }
  }
};
+1 −1
Changes for modules/cloud_dashboard/cloud_dashboard/src/molecules/ItemCountLabel.tsx: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ const getItemCount = async (
    filter['namespace'] = namespace;
  }
  if (namespaceName !== '') {
    filter['namespace_name'] = namespaceName;
    filter['namespace'] = namespaceName;
  }

  // Download data.
+6 −0
Changes for modules/cloud_dashboard/cloud_dashboard/src/pages/EntityInfoPage.tsx: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -7,8 +7,10 @@ import EntityInfoPanelData from 'model/EntityInfoPanelData';
import EntityInfoTemplate from 'model/EntityInfoTemplate';
import EntityInfoPanel from 'organisms/EntityInfoPanel';
import MenuBar from 'organisms/MenuBar';
import K8sEntityEditPage from 'pages/k8s/K8sEntityEditPage';
import K8sNamespaceEditPage from 'pages/k8s/K8sNamespaceEditPage';
import K8sPodEditPage from 'pages/k8s/K8sPodEditPage';
import K8sScheduleEditPage from 'pages/k8s/K8sScheduleEditPage';
import React, { useEffect, useState } from 'react';
import { useParams } from 'react-router-dom';
import { convertDataForUI, readDataCache } from 'service/utility';
@@ -151,6 +153,10 @@ const EntityInfoPage = ({ entityInfoTemplate }: {
        return <K8sPodEditPage entityInfoTemplate={entityInfoTemplate} />;
      case 'namespace':
        return <K8sNamespaceEditPage entityInfoTemplate={entityInfoTemplate} />;
      case 'schedule':
        return <K8sScheduleEditPage entityInfoTemplate={entityInfoTemplate} />;
      default:
        return <K8sEntityEditPage entityInfoTemplate={entityInfoTemplate} />;
    }
  }

+1 −1
Changes for modules/cloud_dashboard/cloud_dashboard/src/pages/EntityPage.tsx: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ const EntityPage = ({ menuTemplate }: {
                ? <Form.Group style={{ marginTop: '2rem' }}>
                  <Form.Label>Namespace Name</Form.Label>
                  <FieldSelect
                    columnKey="namespace_name"
                    columnKey="namespace"
                    columnName={namespaceName}
                    setColumnName={setNamespaceName} />
                </Form.Group>
Loading