cloud service compatibility (#397)

* fix showing message toast multiple times

* update workflow compatibility

* update launchpad services

* update
This commit is contained in:
oblomov 2023-07-19 15:55:17 +02:00 committed by GitHub
parent 3b0f4c3ab9
commit 6c3b36dd93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 4 deletions

View File

@ -253,7 +253,7 @@ CLASS Z2UI5_CL_HTTP_HANDLER IMPLEMENTATION.
` });` && |\n| &&
` }` && |\n| &&
` sap.z2ui5.oBody.ID = sap.z2ui5.oResponse.ID;` && |\n| &&
` // sap.z2ui5.oBody.CHECKLAUNCHPADACTIVE = sap.z2ui5.checkLaunchpadActive;` && |\n| &&
` sap.z2ui5.oBody.CHECKLAUNCHPADACTIVE = sap.z2ui5.CHECKLAUNCHPADACTIVE;` && |\n| &&
` sap.z2ui5.oBody.ARGUMENTS = arguments;` && |\n| &&
` try { sap.z2ui5.oBody.OCURSOR = sap.ui.getCore().byId(sap.ui.getCore().getCurrentFocusedControlId()).getFocusInfo(); } catch (e) { }` && |\n| &&
|\n| &&
@ -370,6 +370,7 @@ CLASS Z2UI5_CL_HTTP_HANDLER IMPLEMENTATION.
` if (!sap.z2ui5) {` && |\n| &&
` sap.z2ui5 = {};` && |\n| &&
` }` && |\n| &&
` sap.z2ui5.CHECKLAUNCHPADACTIVE = false;` && |\n| &&
` if (!sap.z2ui5.pathname) {` && |\n| &&
` sap.z2ui5.pathname = window.location.pathname;` && |\n| &&
` }` && |\n| &&

View File

@ -669,13 +669,14 @@ CLASS z2ui5_lcl_utility IMPLEMENTATION.
METHOD get_param.
DATA(lt_params) = VALUE z2ui5_if_client=>ty_t_name_value( ).
DATA(lv_search) = z2ui5_lcl_fw_handler=>so_body->get_attribute( `OLOCATION` )->get_attribute( `SEARCH` )->get_val( ).
REPLACE `%3D` IN lv_search WITH `=`.
SPLIT lv_search AT `&sap-startup-params=` INTO DATA(lv_search1) DATA(lv_search2).
IF lv_search2 IS NOT INITIAL.
lv_search = lv_search2.
REPLACE `%3D` IN lv_search WITH `=`.
REPLACE `%26` IN lv_search WITH `&`.
REPLACE `%2509` IN lv_search WITH ``.
ELSE.
lv_search = lv_search1.
ENDIF.
@ -1542,8 +1543,18 @@ CLASS z2ui5_lcl_fw_handler IMPLEMENTATION.
METHOD set_app_start.
TRY.
DATA(lv_classname) = to_upper( so_body->get_attribute( 'APP_START' )->get_val( ) ).
SHIFT lv_classname LEFT DELETING LEADING cl_abap_char_utilities=>horizontal_tab.
SHIFT lv_classname RIGHT DELETING TRAILING cl_abap_char_utilities=>horizontal_tab.
lv_classname = z2ui5_lcl_utility=>get_trim_upper( lv_classname ).
CATCH cx_root.
ENDTRY.
IF lv_classname IS INITIAL.
lv_classname = z2ui5_lcl_utility=>get_param( `app_start` ).
ENDIF.
DATA(lv_classname) = z2ui5_lcl_utility=>get_param( `app_start` ).
IF lv_classname IS INITIAL.
TRY.
lv_classname = to_upper( so_body->get_attribute( 'APP_START' )->get_val( ) ).