Skip to content

Commit b2f6355

Browse files
authored
Merge pull request #27 from fleetbase/dev-v0.1.9
v0.1.9
2 parents 9d92927 + 73933eb commit b2f6355

File tree

5 files changed

+345
-307
lines changed

5 files changed

+345
-307
lines changed

addon/models/driver.js

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ export default class DriverModel extends Model {
4747
vehicle_avatar;
4848
@attr('string') vendor_name;
4949
@attr('string') drivers_license_number;
50+
@attr('string', {
51+
defaultValue: get(config, 'defaultValues.driverAvatar'),
52+
}) avatar_url;
53+
@attr('string') avatar_value;
5054
@attr('point') location;
5155
@attr('number') heading;
5256
@attr('string') country;

addon/models/place.js

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { computed, get } from '@ember/object';
44
import { not } from '@ember/object/computed';
55
import { format as formatDate, isValid as isValidDate, formatDistanceToNow } from 'date-fns';
66
import isValidCoordinates from '@fleetbase/ember-core/utils/is-valid-coordinates';
7+
import config from 'ember-get-config';
78

89
export default class PlaceModel extends Model {
910
/** @ids */
@@ -15,6 +16,10 @@ export default class PlaceModel extends Model {
1516
@attr('string') name;
1617
@attr('string') phone;
1718
@attr('string') type;
19+
@attr('string', {
20+
defaultValue: get(config, 'defaultValues.placeAvatar'),
21+
}) avatar_url;
22+
@attr('string') avatar_value;
1823
@attr('string') address;
1924
@attr('string') address_html;
2025
@attr('string') street1;

addon/models/vehicle.js

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default class VehicleModel extends Model {
3131
defaultValue: get(config, 'defaultValues.vehicleAvatar'),
3232
})
3333
avatar_url;
34+
@attr('string') avatar_value;
3435
@attr('point') location;
3536
@attr('string') make;
3637
@attr('string') model;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fleetbase/fleetops-data",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"description": "Fleetbase Fleet-Ops based models, serializers, transforms, adapters and GeoJson utility functions.",
55
"keywords": [
66
"fleetbase-data",

0 commit comments

Comments
 (0)