Add onboarding weather and template gradients
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// Weather location duplication helpers.
|
||||
|
||||
function buildDuplicateWeatherLocationName(locationName) {
|
||||
return 'Copy of ' + String(locationName || '').trim();
|
||||
}
|
||||
|
||||
function buildDuplicateWeatherLocation(location, duplicateName) {
|
||||
return Object.assign({}, location, {
|
||||
id: null,
|
||||
name: duplicateName,
|
||||
last_pulled_at: null,
|
||||
last_pull_error: '',
|
||||
last_response_status: null,
|
||||
last_response_content_type: '',
|
||||
last_response_json: ''
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
buildDuplicateWeatherLocationName,
|
||||
buildDuplicateWeatherLocation
|
||||
};
|
||||
Reference in New Issue
Block a user