Merge branch 'release/1.11.1' into master
This commit is contained in:
@@ -112,20 +112,19 @@ export default {
|
|||||||
return `${this.browser.browser_name || ''} ${this.browser
|
return `${this.browser.browser_name || ''} ${this.browser
|
||||||
.browser_version || ''}`;
|
.browser_version || ''}`;
|
||||||
},
|
},
|
||||||
|
contactAdditionalAttributes() {
|
||||||
|
return this.contact.additional_attributes || {};
|
||||||
|
},
|
||||||
ipAddress() {
|
ipAddress() {
|
||||||
const {
|
const { created_at_ip: createdAtIp } = this.contactAdditionalAttributes;
|
||||||
additional_attributes: { created_at_ip: createdAtIp },
|
|
||||||
} = this.contact;
|
|
||||||
return createdAtIp;
|
return createdAtIp;
|
||||||
},
|
},
|
||||||
location() {
|
location() {
|
||||||
const {
|
const {
|
||||||
additional_attributes: {
|
country = '',
|
||||||
country = '',
|
city = '',
|
||||||
city = '',
|
country_code: countryCode,
|
||||||
country_code: countryCode,
|
} = this.contactAdditionalAttributes;
|
||||||
},
|
|
||||||
} = this.contact;
|
|
||||||
const cityAndCountry = [city, country].filter(item => !!item).join(', ');
|
const cityAndCountry = [city, country].filter(item => !!item).join(', ');
|
||||||
|
|
||||||
if (!cityAndCountry) {
|
if (!cityAndCountry) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
shared: &shared
|
shared: &shared
|
||||||
version: '1.11.0'
|
version: '1.11.1'
|
||||||
|
|
||||||
development:
|
development:
|
||||||
<<: *shared
|
<<: *shared
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@chatwoot/chatwoot",
|
"name": "@chatwoot/chatwoot",
|
||||||
"version": "1.11.0",
|
"version": "1.11.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"eslint": "eslint app/javascript --fix",
|
"eslint": "eslint app/javascript --fix",
|
||||||
|
|||||||
Reference in New Issue
Block a user