Advertisement
f1lam3ntx0

Untitled

Jul 14th, 2021
1,047
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   debugger;
  2.         if (this.isLightning == true)
  3.         {
  4.             var compDefinition = {
  5.                 componentDef: this.currentPacakageNameLWC + ":myPreferences",
  6.             };
  7.            // var encodedCompDef = btoa(JSON.stringify(compDefinition));
  8.  
  9.             this[NavigationMixin.Navigate]({
  10.                 type: "standard__component",
  11.                 attributes: {
  12.                    
  13.                     componentName: "c__SRSettings"
  14.                 },
  15.                
  16.                 state: {
  17.                     c__WorkspaceId: this.workspaceId
  18.                 }
  19.             });
  20.            
  21.         }
  22.         else    
  23.         {
  24.             window.parent.location = this.sfdcBaseURL + "/apex/" + this.packageName + "navigationVf?currentpage=myPreferences";
  25.         }
  26.              
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement