issue #10 #11 Apply last_lang user dataset into welcome.

This commit is contained in:
paul kim
2024-06-12 22:14:37 +09:00
parent 3fbfe72287
commit 8a263ced1a

View File

@@ -416,9 +416,23 @@ HotelTV.ui_welcome = (function() {
hndl_langSel.on('changed.owl.carousel', function(event) {
const __ifxn_sendNextLangUsrData = async function(_nextLang, __cbFxnFailure=null, __cbFxn_Success=null) {
try {
let _usrDataJson = {
'next_lang': _nextLang,
};
_result = await HotelTV.api.SetUsrDataset(_usrDataJson);
console.log("The app main page will be reloaded");
} catch ( __err ){
console.log("CALL API::>" + __err);
}
}
// Update Language
console.log("LANG SEL[CHANGED]::>" + event.page.index);
_state.lang = Object.keys(_ctzOpening.languages)[event.page.index];
__ifxn_sendNextLangUsrData(_state.lang);
__uifxn_WC_SetCtz(_ctzGst.name, _ctzWc.message);
});
} else {