Skip to content

Commit b3fef67

Browse files
author
Jessica Wang
committed
cloudstack 3.0 new UI - configuration page, event page, storage page, system page, template page - apply converter toLocalDate() to date field.
1 parent 1e3fd11 commit b3fef67

5 files changed

Lines changed: 14 additions & 15 deletions

File tree

‎ui/scripts/configuration.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
tags: { label: 'Storage tags' },
288288
hosttags: { label: 'Host tags' },
289289
domain: { label: 'Domain' },
290-
created: { label: 'Created' }
290+
created: { label: 'Created', converter: cloudStack.converters.toLocalDate }
291291
}
292292
],
293293

@@ -583,7 +583,7 @@
583583
tags: { label: 'Storage tags' },
584584
hosttags: { label: 'Host tags' },
585585
domain: { label: 'Domain' },
586-
created: { label: 'Created' }
586+
created: { label: 'Created', converter: cloudStack.converters.toLocalDate }
587587
}
588588
],
589589

‎ui/scripts/events.js‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
type: { label: 'Type' },
2323
description: { label: 'Description' },
2424
username: { label: 'Initiated By' },
25-
created: { label: 'Date' }
25+
created: { label: 'Date', converter: cloudStack.converters.toLocalDate }
2626
},
2727
dataProvider: function(args) {
2828
$.ajax({
@@ -44,7 +44,7 @@
4444
{
4545
type: { label: 'Type' },
4646
description: { label: 'Description' },
47-
created: { label: 'Date' }
47+
created: { label: 'Date', converter: cloudStack.converters.toLocalDate }
4848
}
4949
],
5050
dataProvider: function(args) {
@@ -61,10 +61,9 @@
6161
listView: {
6262
id: 'alerts',
6363
label: 'Alerts',
64-
fields: {
65-
type: { label: 'Type' },
64+
fields: {
6665
description: { label: 'Description' },
67-
sent: { label: 'Date' }
66+
sent: { label: 'Date', converter: cloudStack.converters.toLocalDate }
6867
},
6968
dataProvider: function(args) {
7069
$.ajax({
@@ -84,9 +83,9 @@
8483
title: 'Details',
8584
fields: [
8685
{
87-
type: { label: 'Type' },
86+
id: { label: 'ID' },
8887
description: { label: 'Description' },
89-
sent: { label: 'Date' }
88+
sent: { label: 'Date', converter: cloudStack.converters.toLocalDate }
9089
}
9190
],
9291
dataProvider: function(args) {

‎ui/scripts/storage.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@
10531053
volumename: { label: 'Volume' },
10541054
state: { label: 'State', indicator: { 'BackedUp': 'on', 'Destroyed': 'off' } },
10551055
intervaltype: { label: 'Interval Type' },
1056-
created: { label: 'Date' }
1056+
created: { label: 'Date', converter: cloudStack.converters.toLocalDate }
10571057
},
10581058

10591059
actions: {

‎ui/scripts/system.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@
20152015
networkdomain: { label: 'Network domain' },
20162016
domain: { label: 'Domain' },
20172017
account: { label: 'Account' },
2018-
created: { label: 'Created' },
2018+
created: { label: 'Created', converter: cloudStack.converters.toLocalDate },
20192019
isredundantrouter: {
20202020
label: 'Redundant router',
20212021
converter: cloudStack.converters.toBooleanText
@@ -4139,7 +4139,7 @@
41394139
linklocalip: { label: 'Link local IP' },
41404140
hostname: { label: 'Host' },
41414141
gateway: { label: 'Gateway' },
4142-
created: { label: 'Created' },
4142+
created: { label: 'Created', converter: cloudStack.converters.toLocalDate },
41434143
activeviewersessions: { label: 'Active sessions' }
41444144
}
41454145
],
@@ -5315,7 +5315,7 @@
53155315
linklocalip: { label: 'Link local IP' },
53165316
hostname: { label: 'Host' },
53175317
gateway: { label: 'Gateway' },
5318-
created: { label: 'Created' },
5318+
created: { label: 'Created', converter: cloudStack.converters.toLocalDate },
53195319
activeviewersessions: { label: 'Active sessions' }
53205320
}
53215321
],

‎ui/scripts/templates.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@
800800

801801
domain: { label: 'Domain' },
802802
account: { label: 'Account' },
803-
created: { label: 'Created' }
803+
created: { label: 'Created', converter: cloudStack.converters.toLocalDate }
804804
}
805805
],
806806

@@ -1486,7 +1486,7 @@
14861486

14871487
domain: { label: 'Domain' },
14881488
account: { label: 'Account' },
1489-
created: { label: 'Created' }
1489+
created: { label: 'Created', converter: cloudStack.converters.toLocalDate }
14901490
}
14911491
],
14921492

0 commit comments

Comments
 (0)