cartodb-4.42/lib/assets/javascripts/new-dashboard/utils/catalog/update-frequency-name.js

13 lines
274 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
const updateFrequency = {
'6_months': '6 months',
daily: 'Daily',
weekly: 'Weekly',
yearly: 'Yearly',
quarterly: 'Quarterly',
monthly: 'Monthly'
};
export function updateFrequencyName (frequencyId) {
return frequencyId ? updateFrequency[frequencyId] : '-';
}