@topconsultnpm/sdkui-react-beta 6.8.28 → 6.8.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -160,8 +160,8 @@ export const TMSaveFormButtonSave = ({ btnStyle, errorsCount, isModified, iconCo
160
160
  catch (ex) {
161
161
  TMExceptionBoxManager.show({ exception: ex });
162
162
  } };
163
- return (_jsx(TMButton, { btnStyle: btnStyle, width: width, advancedColor: advancedColor, advancedType: advancedType, caption: SDKUI_Localizator.Save, icon: _jsx(IconSave, { color: iconColor }), keyGesture: "alt+s", backgroundColor: errorsCount > 0 ? TMColors.error : isModified ? TMColors.success : TMColors.disabled, onClick: doSaveAsync, color: "success", disabled: !(isModified && errorsCount <= 0) }));
163
+ return (_jsx(TMButton, { showTooltip: false, btnStyle: btnStyle, width: width, advancedColor: advancedColor, advancedType: advancedType, caption: SDKUI_Localizator.Save, icon: _jsx(IconSave, { color: iconColor }), keyGesture: "alt+s", backgroundColor: errorsCount > 0 ? TMColors.error : isModified ? TMColors.success : TMColors.disabled, onClick: doSaveAsync, color: "success", disabled: !(isModified && errorsCount <= 0) }));
164
164
  };
165
165
  export const TMSaveFormButtonUndo = ({ btnStyle, isModified, iconColor, width, advancedColor, advancedType, onUndo }) => {
166
- return (_jsx(TMButton, { btnStyle: btnStyle, width: width, advancedColor: advancedColor, advancedType: advancedType, caption: SDKUI_Localizator.Undo, icon: _jsx(IconUndo, { color: iconColor }), keyGesture: "alt+z", color: "tertiary", disabled: !isModified, onClick: onUndo }));
166
+ return (_jsx(TMButton, { showTooltip: false, btnStyle: btnStyle, width: width, advancedColor: advancedColor, advancedType: advancedType, caption: SDKUI_Localizator.Undo, icon: _jsx(IconUndo, { color: iconColor }), keyGesture: "alt+z", color: "tertiary", disabled: !isModified, onClick: onUndo }));
167
167
  };
@@ -1,6 +1,6 @@
1
1
  import { Colors } from "../utils/theme";
2
2
  import { ButtonNames, DeviceType, TMExceptionBoxManager, TMMessageBoxManager, TMSpinner } from "../components";
3
- import { AppModules, SDK_Globals, SystemMIDsAsNumber, TopMediaServer } from "@topconsultnpm/sdk-ts-beta";
3
+ import { SDK_Globals, SystemMIDsAsNumber, TopMediaServer } from "@topconsultnpm/sdk-ts-beta";
4
4
  import { Buffer } from 'buffer';
5
5
  import { buildTypes, FormModes, moduleTypes } from "../ts";
6
6
  import { SDKUI_Localizator } from "./SDKUI_Localizator";
@@ -16,7 +16,6 @@ const calcResponsiveDirection = (deviceType, desktopDir, tabletDir, mobileDir) =
16
16
  return mobileDir;
17
17
  };
18
18
  const openApps = async (appModule, tmSession, appRoutes) => {
19
- const landingUrl = appModule === AppModules.SURFER ? '/' : '/Homepage';
20
19
  try {
21
20
  window.Buffer = Buffer;
22
21
  TMSpinner.show();
@@ -26,7 +25,7 @@ const openApps = async (appModule, tmSession, appRoutes) => {
26
25
  toTMSession.SessionDescr = toSessionDescr;
27
26
  let str = (JSON.stringify(toTMSession));
28
27
  let sessionToBase64 = Buffer.from(str).toString("base64");
29
- window.open(appRoutes?.find(route => route.appName === appModule).URL + landingUrl + '?session=' + sessionToBase64);
28
+ window.open(appRoutes?.find(route => route.appName === appModule).URL + '/Homepage' + '?session=' + sessionToBase64);
30
29
  }
31
30
  catch (e) {
32
31
  TMExceptionBoxManager.show({ exception: e.message });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.8.28",
3
+ "version": "6.8.30",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",