-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add Related Stripe Sync Records to setup steps * Updated from PR feedback * Updates from feedback * and fields... * Added a sensible rename to trigger ci flows
- Loading branch information
Showing
7 changed files
with
131 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 31 additions & 1 deletion
32
sfdx/force-app/main/default/lwc/orgSettingsStep/orgSettingsStep.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,34 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class OrgSettingsStep extends LightningElement {} | ||
const SUB_PAGES = { | ||
PAGE_LAYOUTS: 'PageLayouts', | ||
LIGHTNING_RECORD_PAGES: 'LightningPages', | ||
}; | ||
|
||
export default class OrgSettingsStep extends LightningElement { | ||
targetedObjects = [ | ||
'Account', | ||
'Order', | ||
'PricebookEntry', | ||
'Product2', | ||
]; | ||
|
||
openPageLayouts(e) { | ||
this.gotoSetupObjectManagerPage(e.target.dataset.object, SUB_PAGES.PAGE_LAYOUTS); | ||
} | ||
|
||
openLightningRecordPages(e) { | ||
this.gotoSetupObjectManagerPage(e.target.dataset.object, SUB_PAGES.LIGHTNING_RECORD_PAGES); | ||
} | ||
|
||
/** | ||
* Returns the relative url to a page within Setup. | ||
* | ||
* @param {string} object | ||
* @param {string} subPage | ||
*/ | ||
gotoSetupObjectManagerPage(object, subPage) { | ||
window.open(`/lightning/setup/ObjectManager/${object}/${subPage}/view`, '_blank'); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters