瀏覽代碼

Add 'last_used_at' and 'allocated_action' fields to minion machine view.

Nashwan Azhari 5 年之前
父節點
當前提交
78517c153e
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/components/organisms/MinionPoolDetailsContent/MinionPoolMachines.tsx

+ 2 - 0
src/components/organisms/MinionPoolDetailsContent/MinionPoolMachines.tsx

@@ -252,6 +252,8 @@ class MinionPoolMachines extends React.Component<Props, State> {
               </MachineRow>
               </MachineRow>
               <MachineRow secondary>Created At: {moment(machine.created_at).format('YYYY-MM-DD HH:mm:ss')}</MachineRow>
               <MachineRow secondary>Created At: {moment(machine.created_at).format('YYYY-MM-DD HH:mm:ss')}</MachineRow>
               {machine.updated_at ? <MachineRow secondary>Updated At: {moment(machine.updated_at).format('YYYY-MM-DD HH:mm:ss')}</MachineRow> : null}
               {machine.updated_at ? <MachineRow secondary>Updated At: {moment(machine.updated_at).format('YYYY-MM-DD HH:mm:ss')}</MachineRow> : null}
+              {machine.last_used_at ? <MachineRow secondary>Last Used At: {moment(machine.last_used_at).format('YYYY-MM-DD HH:mm:ss')}</MachineRow> : null}
+              <MachineRow secondary>Allocated Action: {machine.allocated_action}</MachineRow>
             </MachineBody>
             </MachineBody>
             {machine.connection_info ? this.renderConnectionInfo(machine) : null}
             {machine.connection_info ? this.renderConnectionInfo(machine) : null}
           </MachineWrapper>
           </MachineWrapper>