@@ -127,7 +121,7 @@
Provided by:
- Org Name
+ {servicerecommendation.Service.Account__r.Name}
{servicerecommendation.ProgramDescription}
diff --git a/force-app/main/default/lwc/serviceRecommendation/serviceRecommendation.js b/force-app/main/default/lwc/serviceRecommendation/serviceRecommendation.js
index 23544048..c055ccb1 100644
--- a/force-app/main/default/lwc/serviceRecommendation/serviceRecommendation.js
+++ b/force-app/main/default/lwc/serviceRecommendation/serviceRecommendation.js
@@ -1,5 +1,6 @@
/* eslint-disable no-empty */
import { LightningElement, api } from 'lwc';
+import { NavigationMixin } from 'lightning/navigation';
import hideContacts from '@salesforce/apex/serviceHide.hide';
import unhideContacts from '@salesforce/apex/serviceHide.unHide';
@@ -9,10 +10,10 @@ import print from '@salesforce/apex/ServicePrint.PrintPage';
import { icons } from './serviceTypeMap';
-export default class ServiceRecommendation extends LightningElement {
+export default class ServiceRecommendation extends NavigationMixin(LightningElement) {
@api servicerecommendation;
-
+ url;
@api contactid;
@api serviceid;
@@ -35,6 +36,9 @@ export default class ServiceRecommendation extends LightningElement {
if (rec.Indicators.length > 0) {
this.indicatorCount = rec.Indicators.length;
}
+
+
+
}
handleSendReferral() {
@@ -72,6 +76,15 @@ export default class ServiceRecommendation extends LightningElement {
hideContacts({ serviceId: this.serviceid, contactId: this.contactid })
.then(() => {
window.console.log('success');
+ let eventParams = 'reloadAfterHide';
+ const flowLaunchEvent = new CustomEvent('reloadafterhide', {
+ detail: {
+ eventParams
+ },
+ });
+ // Fire the custom event
+
+ this.dispatchEvent(flowLaunchEvent);
})
.catch((error) => {
window.console.log('error:' + error);
@@ -83,6 +96,15 @@ export default class ServiceRecommendation extends LightningElement {
hideContacts({ serviceId: this.serviceid, contactId: null })
.then(() => {
window.console.log('success');
+ let eventParams = 'reloadAfterHide';
+ const flowLaunchEvent = new CustomEvent('reloadafterhide', {
+ detail: {
+ eventParams
+ },
+ });
+ // Fire the custom event
+
+ this.dispatchEvent(flowLaunchEvent);
})
.catch((error) => {
window.console.log('error:' + error);
@@ -93,6 +115,15 @@ export default class ServiceRecommendation extends LightningElement {
unhideContacts({ serviceId: this.serviceid, contactId: this.contactid })
.then(() => {
window.console.log('success');
+ let eventParams = 'reloadAfterHide';
+ const flowLaunchEvent = new CustomEvent('reloadafterhide', {
+ detail: {
+ eventParams
+ },
+ });
+ // Fire the custom event
+
+ this.dispatchEvent(flowLaunchEvent);
})
.catch((error) => {
window.console.log('error:' + error);
@@ -103,6 +134,15 @@ export default class ServiceRecommendation extends LightningElement {
unhideContacts({ serviceId: this.serviceid, contactId: null })
.then(() => {
window.console.log('success');
+ let eventParams = 'reloadAfterHide';
+ const flowLaunchEvent = new CustomEvent('reloadafterhide', {
+ detail: {
+ eventParams
+ },
+ });
+ // Fire the custom event
+
+ this.dispatchEvent(flowLaunchEvent);
})
.catch((error) => {
window.console.log('error:' + error);
@@ -110,8 +150,21 @@ export default class ServiceRecommendation extends LightningElement {
}
handleAccountRedirect() {
- let url = '/' + this.servicerecommendation.AccountId;
- window.open(url);
+ this[NavigationMixin.Navigate] ({
+ type: 'standard__recordPage',
+ attributes: {
+ recordId: this.servicerecommendation.AccountId,
+ objectApiName: 'Account',
+ actionName: 'view'
+ }
+ });
+ }
+
+ handleOpenMenu(event){
+ window.console.log('opening');
+ window.console.log(event.currentTarget);
+ let parent = event.currentTarget.parentElement;
+ parent.classList.toggle('slds-is-open');
}
handleShowAddComment() {
diff --git a/force-app/main/default/lwc/serviceRecommendations/serviceRecommendations.html b/force-app/main/default/lwc/serviceRecommendations/serviceRecommendations.html
index 6f7e823b..44ff2d00 100644
--- a/force-app/main/default/lwc/serviceRecommendations/serviceRecommendations.html
+++ b/force-app/main/default/lwc/serviceRecommendations/serviceRecommendations.html
@@ -12,12 +12,10 @@
diff --git a/force-app/main/default/lwc/serviceRecommendations/serviceRecommendations.js b/force-app/main/default/lwc/serviceRecommendations/serviceRecommendations.js
index 207516a3..4d6649b3 100644
--- a/force-app/main/default/lwc/serviceRecommendations/serviceRecommendations.js
+++ b/force-app/main/default/lwc/serviceRecommendations/serviceRecommendations.js
@@ -73,7 +73,7 @@ export default class ServiceRecommendations extends LightningElement {
title: '',
description: ''
};
- if(result[i].Hidden === true){
+ if(result[i].Hidden === true || result[i].HiddenAll === true){
hiddenResult.push(result[i]);
}else{
showResult.push(result[i]);
diff --git a/force-app/main/default/lwc/starRating/starRating.css b/force-app/main/default/lwc/starRating/starRating.css
index 06140e4f..02aec548 100644
--- a/force-app/main/default/lwc/starRating/starRating.css
+++ b/force-app/main/default/lwc/starRating/starRating.css
@@ -3,7 +3,6 @@
align-items: center;
flex: 0 0 auto;
justify-content: center;
- margin-top: 0.5rem;
transition: all 0.3s ease;
flex-wrap: wrap;
}
diff --git a/force-app/main/default/lwc/starRating/starRating.html b/force-app/main/default/lwc/starRating/starRating.html
index 4fa1e598..a835143e 100644
--- a/force-app/main/default/lwc/starRating/starRating.html
+++ b/force-app/main/default/lwc/starRating/starRating.html
@@ -3,7 +3,12 @@
- Client Rating:
+
+ Client
+
+
+ Rating:
+
diff --git a/force-app/main/default/staticresources/mapModal.css b/force-app/main/default/staticresources/mapModal.css
index 3c431153..f81fdb7f 100644
--- a/force-app/main/default/staticresources/mapModal.css
+++ b/force-app/main/default/staticresources/mapModal.css
@@ -1,4 +1,8 @@
.mapModal {
width:90% !important;
max-width: 90% !important;
+}
+
+.slds-dropdown__item span {
+ color:black !important;
}
\ No newline at end of file