Explorar o código

chore: frontend fixes

Soham Parekh %!s(int64=3) %!d(string=hai) anos
pai
achega
ea71b7db25

+ 1 - 1
dashboard/src/components/porter-form/field-components/KeyValueArray.tsx

@@ -290,7 +290,7 @@ const KeyValueArray: React.FC<Props> = (props) => {
       return (
       return (
         <Wrapper>
         <Wrapper>
           <Helper color="#f5cb42" style={{ marginLeft: "10px" }}>
           <Helper color="#f5cb42" style={{ marginLeft: "10px" }}>
-            Overridden by the env group "{env_group?.name}"
+            Overrides variable in the env group "{env_group?.name}"
           </Helper>
           </Helper>
         </Wrapper>
         </Wrapper>
       );
       );

+ 6 - 3
dashboard/src/main/home/modals/LoadEnvGroupModal.tsx

@@ -203,16 +203,19 @@ export default class LoadEnvGroupModal extends Component<PropsType, StateType> {
                 <ClashIcon className="material-icons">sync_problem</ClashIcon>
                 <ClashIcon className="material-icons">sync_problem</ClashIcon>
               </ClashIconWrapper>
               </ClashIconWrapper>
               <ClashingKeyExplanation>
               <ClashingKeyExplanation>
-                <b>{key}</b> is defined in both environments
+                <b>{key}</b> is defined in both environments. Value in the
+                selected environment group will be overriden.
               </ClashingKeyExplanation>
               </ClashingKeyExplanation>
             </ClashingKeyTop>
             </ClashingKeyTop>
             <ClashingKeyDefinitions>
             <ClashingKeyDefinitions>
-              <ClashingKeyLabel>Old</ClashingKeyLabel>
+              <ClashingKeyLabel>Current</ClashingKeyLabel>
               <ClashingKeyValue>
               <ClashingKeyValue>
                 {formattedEnvironmentValue(this.props.existingValues[key]) ||
                 {formattedEnvironmentValue(this.props.existingValues[key]) ||
                   emptyValue}
                   emptyValue}
               </ClashingKeyValue>
               </ClashingKeyValue>
-              <ClashingKeyLabel>New</ClashingKeyLabel>
+              <ClashingKeyLabel>
+                From {this.state.selectedEnvGroup.name}
+              </ClashingKeyLabel>
               <ClashingKeyValue>
               <ClashingKeyValue>
                 {formattedEnvironmentValue(value) || emptyValue}
                 {formattedEnvironmentValue(value) || emptyValue}
               </ClashingKeyValue>
               </ClashingKeyValue>