Does anyone know if i can flip the current choices in the dropdown to have "Your teams work" display
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 07:51 AM - edited 05-16-2024 09:04 AM
Hello Devs,
I have been chasing my tail on an issue:
Does anyone know if i can flip the current choices in the dropdown to have "Your teams work" display first?
I have made a copy of the service desk landing page and need to flip the order of the items in the dropdown menu.
I have updated the UX Client script include below by flipping the order in which the choices are called, but the dropdown menu does not change, is there another piece I am missing?
SowIncidentLandingPageUtils:
}
/**
* Returns configuration for work persona dropdown
* {object} helpers
* @return {object}
*/
static async getWorkPersonaConfig(helpers) {
return {
"items": [{
"id": "your_work",
"label": await helpers.translate("Your team's work")
},
{
"id": "your_team_work",
"label": await helpers.translate("Your work")
}
],
"defaultSelected": ["your_team_work"]
}
}
Any help would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 12:51 PM
@Gangadhar Ravi I made a copy of the "Service desk landing page SNC" variant. That is the one i am trying to update.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 12:52 PM
your changes should work actually. try to do cache.do and see if that will fix or try different browser.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 01:02 PM
This is my full SowIncidentLandingPageUtils script:
function include({imports}) {
let serviceDeskLandingPageUtilsSNC = imports['sn_sow_inc.SowIncidentLandingPageUtilsSNC']();
class ServiceDeskLandingPageUtils extends serviceDeskLandingPageUtilsSNC {
/*
/**
* Returns configuration for work persona dropdown
* {object} helpers
* @return {object}
*/
static async getWorkPersonaConfig(helpers) {
return {
"items": [{
"id": "your_team_work",
"label": await helpers.translate("Your team's work")
},
{
"id": "your_work",
"label": await helpers.translate("Your work")
}
],
"defaultSelected": ["your_team_work"]
}
}
}*/
}
return ServiceDeskLandingPageUtils;
}
But i am still not seeing the updates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 01:41 PM
@Gangadhar Ravi was using firefox, i have tried chrome also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 02:20 PM
Solution ended up being:
- Updated the SowIncidentLandingPageUtils script include.
- Updated the UpdateDonutsConfig client script on the copied page