jusrhee 4 лет назад
Родитель
Сommit
930b1fd417

+ 7 - 2
dashboard/src/main/home/cluster-dashboard/dashboard/Metrics.tsx

@@ -258,12 +258,13 @@ const Metrics: React.FC = () => {
     <LoadingWrapper>
       <Loading />
     </LoadingWrapper>
-  ) : !detected ? (
+  ) : !detected || true ? (
     <>
       <br />
       <br />
       <Placeholder height="calc(50vh - 50px)" minHeight="400px">
-        Cluster metrics unavailable. No ingress controller or instance of nginx-ingress was found on this cluster.
+        Cluster metrics unavailable. Make sure nginx-ingress and Prometheus are installed. 
+        <A href="/launch">Go to Launch</A>
       </Placeholder>
     </>
   ) : (
@@ -336,6 +337,10 @@ const Metrics: React.FC = () => {
 
 export default Metrics;
 
+const A = styled.a`
+  margin-left: 5px;
+`;
+
 const LoadingWrapper = styled.div`
   padding: 100px 0px;
   width: 100%;

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

@@ -161,7 +161,7 @@ const NotificationSettingsSection: React.FC<Props> = (props) => {
               <br />
               <SaveButton
                 onClick={() => saveChanges()}
-                text={"Save"}
+                text="Save Notification Settings"
                 clearPosition={true}
                 statusPosition={"right"}
                 disabled={props.disabled || initLoading || saveLoading}

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

@@ -210,6 +210,18 @@ const SettingsSection: React.FC<PropsType> = ({
             forceExpanded={true}
             disableImageSelect={true}
           />
+          {!loadingWebhookToken && (
+            <>
+            <Br /><Br /><Br />
+            <SaveButton
+              clearPosition={true}
+              statusPosition="right"
+              text="Save Source Settings"
+              status={saveValuesStatus}
+              onClick={handleSubmit}
+            />
+            </>
+          )}
           <Br />
         </>
 
@@ -264,14 +276,6 @@ const SettingsSection: React.FC<PropsType> = ({
       ) : (
         <Loading />
       )}
-      {!loadingWebhookToken && (
-        <SaveButton
-          text={saveButtonText || "Save Config"}
-          status={saveValuesStatus}
-          onClick={handleSubmit}
-          makeFlush={true}
-        />
-      )}
     </Wrapper>
   );
 };