Change query ttl field to be a string and named schedule.

This to allow other types of scheduling than just repeat every X seconds.
The first supported option will be: repeat every day at hour X.
This commit is contained in:
Arik Fraimovich
2015-04-01 11:23:26 +03:00
parent 0bc775584b
commit faad6b656b
16 changed files with 211 additions and 83 deletions

View File

@@ -1,6 +1,8 @@
(function () {
var dateFormatter = function (value) {
if (!value) return "-";
if (!value) {
return "-";
}
return value.toDate().toLocaleString();
};
@@ -30,9 +32,9 @@
},
{
'label': 'Update Schedule',
'map': 'ttl',
'map': 'schedule',
'formatFunction': function (value) {
return $filter('refreshRateHumanize')(value);
return $filter('scheduleHumanize')(value);
}
}
];
@@ -127,9 +129,9 @@
},
{
'label': 'Update Schedule',
'map': 'ttl',
'map': 'schedule',
'formatFunction': function (value) {
return $filter('refreshRateHumanize')(value);
return $filter('scheduleHumanize')(value);
}
}
]