Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
rename usage of ENV to config
Ronald A. Richardsonf38d65028eda
diff --git a/console/app/models/chat-attachment.js b/console/app/models/chat-attachment.jsindex 43d94d5f..e0330f71 100644--- a/console/app/models/chat-attachment.js+++ b/console/app/models/chat-attachment.js@@ -4,7 +4,7 @@ import { computed } from '@ember/object';import { format as formatDate, formatDistanceToNow, isValid as isValidDate } from 'date-fns';import isVideoFile from '@fleetbase/ember-core/utils/is-video-file';import isImageFile from '@fleetbase/ember-core/utils/is-image-file';-import ENV from '@fleetbase/console/config/environment';+import config from '@fleetbase/console/config/environment';export default class ChatAttachment extends Model {/** @ids */@@ -70,7 +70,7 @@ export default class ChatAttachment extends Model {/** @methods */downloadFromApi() {- window.open(ENV.api.host + '/' + ENV.api.namespace + '/files/download?file=' + this.file_uuid, '_self');+ window.open(config.api.host + '/' + config.api.namespace + '/files/download?file=' + this.file_uuid, '_self');}download() {diff --git a/console/app/models/file.js b/console/app/models/file.jsindex 4742d8aa..e321dda9 100644--- a/console/app/models/file.js+++ b/console/app/models/file.js@@ -3,7 +3,7 @@ import { computed } from '@ember/object';import { not } from '@ember/object/computed';import { getOwner } from '@ember/application';import { format, formatDistanceToNow } from 'date-fns';-import ENV from '@fleetbase/console/config/environment';+import config from '@fleetbase/console/config/environment';import isVideoFile from '@fleetbase/ember-core/utils/is-video-file';import isImageFile from '@fleetbase/ember-core/utils/is-image-file';@@ -64,7 +64,7 @@ export default class FileModel extends Model {/** @methods */downloadFromApi() {- window.open(ENV.api.host + '/' + ENV.api.namespace + '/files/download?file=' + this.id, '_self');+ window.open(config.api.host + '/' + config.api.namespace + '/files/download?file=' + this.id, '_self');}download() {