Daniel Vincze 1 год назад
Родитель
Сommit
bdcd56ef2e

+ 2 - 2
src/components/modules/MinionModule/MinionPoolDetailsContent/MinionPoolMachines.tsx

@@ -330,10 +330,10 @@ class MinionPoolMachines extends React.Component<Props, State> {
                     {allocatedAction ? (
                       <>
                         <ItemReplicaBadge style={{ margin: "0px 4px 0 5px" }}>
-                          {allocatedAction.type === "replica" ? "RE" : "MI"}
+                          {allocatedAction.type === "replica" ? "TR" : "DE"}
                         </ItemReplicaBadge>
                         <ValueLink
-                          to={`/${allocatedAction.type}s/${allocatedAction.id}`}
+                          to={`/${allocatedAction.type === "replica" ? "transfers" : "deployments"}/${allocatedAction.id}`}
                         >
                           {allocatedAction.instances[0]}
                         </ValueLink>

+ 9 - 5
src/components/modules/MinionModule/MinionPoolDetailsContent/MinionPoolMainDetails.tsx

@@ -236,13 +236,17 @@ class MinionPoolMainDetails extends React.Component<Props> {
   }
 
   renderUsage(items: TransferItem[]) {
-    return items.map(item => (
-      <div key={item.id}>
-        <ValueLink to={`/${item.type}s/${item.id}`}>
+    return items.map(item => {
+      const actionHref =
+        item.type === "replica"
+          ? "transfers" : "deployments"
+
+      return (<div key={item.id}>
+        <ValueLink to={`/${actionHref}/${item.id}`}>
           {item.instances[0]}
         </ValueLink>
-      </div>
-    ));
+      </div>);
+    });
   }
 
   renderTable() {