Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 1d5438e

Browse files
author
noah
committed
fix: fix the format of deployed at
1 parent 74d2689 commit 1d5438e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ui/src/components/DeployConfirm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default function DeployConfirm(props: DeployConfirmProps): JSX.Element {
6565
{...layout}
6666
label="Deployed At"
6767
>
68-
<Text>{moment(props.deployment.createdAt).format()}</Text>
68+
<Text>{moment(props.deployment.createdAt).format("YYYY-MM-DD HH:mm:ss")}</Text>
6969
</Form.Item>
7070
{(props.deployment.isApprovalEanbled) ?
7171
<Form.Item

ui/src/components/RollbackForm.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Form, Select, Button, Avatar } from 'antd'
22
import moment from 'moment'
33

4-
import { User, Deployment, DeploymentType, Env } from "../models"
4+
import { User, Deployment, Env } from "../models"
55
import ApproversSelect from "./ApproversSelect"
66
import DeploymentRefCode from './DeploymentRefCode'
77

@@ -79,7 +79,6 @@ export default function RollbackForm(props: RollbackFormProps): JSX.Element {
7979
placeholder="Select the deployment">
8080
{props.deployments.map((d, idx) => {
8181
let option: React.ReactElement
82-
const ref = (d.type === DeploymentType.Commit)? d.sha.substr(0, 7) : d.ref
8382

8483
if (d.deployer) {
8584
option = <Select.Option key={idx} value={d.id}>

0 commit comments

Comments
 (0)