Does anyone know if i can flip the current choices in the dropdown to have "Your teams work" display

orlando3
Tera Expert

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.

 

14 REPLIES 14

@Gangadhar Ravi  I made a copy of the "Service desk landing page SNC" variant. That is the one i am trying to update.

your changes should work actually. try to do cache.do and see if that will fix or try different browser. 

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

orlando3_0-1715889742339.png

 

@Gangadhar Ravi was using firefox, i have tried chrome also.

Solution ended up being:


  1. Updated the SowIncidentLandingPageUtils script include.
  2. Updated the UpdateDonutsConfig client script on the copied page