@adaptabletools/adaptable-plugin-ipushpull 22.1.1 → 23.0.0-canary.1
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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/IPushPullApiImpl.d.ts +1 -2
- package/src/IPushPullApiImpl.js +0 -3
- package/src/View/IPushPullAddPagePopup.js +8 -20
- package/src/View/IPushPullLoginPopup.js +6 -18
- package/src/View/IPushPullViewPanel.d.ts +1 -2
- package/src/View/IPushPullViewPanel.js +3 -28
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Once the user is successfully logged in, the Toolbar will contain a number of el
|
|
|
32
32
|
|
|
33
33
|
3. **New ipushpull Page** - alllows the user to create a new ipushpull page in the folder of his choice.
|
|
34
34
|
|
|
35
|
-
4. **
|
|
35
|
+
4. **Send Snapshot / Live Data** - export grid data to ipushpull on demand (scheduling is not supported via ipushpull)
|
|
36
36
|
>This leverages AdapTable Scheduling which enables actions to be performed either at a one off date and time or to be repeated daily at a scheduled time.
|
|
37
37
|
|
|
38
38
|
5. **Logout Button** - logs the User out of ipushpull (and displays the login button).
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiBase } from '@adaptabletools/adaptable/src/Api/Implementation/ApiBase';
|
|
2
|
-
import { IPushPullDomain, IPushPullReport
|
|
2
|
+
import { IPushPullDomain, IPushPullReport } from '@adaptabletools/adaptable/src/AdaptableState/IPushPullState';
|
|
3
3
|
import { IPushPullApi } from '@adaptabletools/adaptable/src/Api/IPushPullApi';
|
|
4
4
|
import { IPushPullPluginOptions } from './IPushPullPluginOptions';
|
|
5
5
|
import { IAdaptable } from '@adaptabletools/adaptable/src/AdaptableInterfaces/IAdaptable';
|
|
@@ -32,7 +32,6 @@ export declare class IPushPullApiImpl extends ApiBase implements IPushPullApi {
|
|
|
32
32
|
setIPushPullThrottleTime(throttleTime: number): void;
|
|
33
33
|
setIPushPullDomains(iPushPullDomains: IPushPullDomain[]): void;
|
|
34
34
|
clearIPushPullDomains(): void;
|
|
35
|
-
getIPushPullSchedules(): IPushPullSchedule[];
|
|
36
35
|
showIPushPullPopup(): void;
|
|
37
36
|
setIPushPullAvailableOn(): void;
|
|
38
37
|
setIPushPullAvailableOff(): void;
|
package/src/IPushPullApiImpl.js
CHANGED
|
@@ -108,9 +108,6 @@ export class IPushPullApiImpl extends ApiBase {
|
|
|
108
108
|
clearIPushPullDomains() {
|
|
109
109
|
this.dispatchAction(IPushPullRedux.IPushPullClearDomainsPages());
|
|
110
110
|
}
|
|
111
|
-
getIPushPullSchedules() {
|
|
112
|
-
return this.getAdaptableState().Schedule.IPushPullSchedules || [];
|
|
113
|
-
}
|
|
114
111
|
showIPushPullPopup() {
|
|
115
112
|
this.showModulePopup(ModuleConstants.IPushPullModuleId);
|
|
116
113
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { connect } from 'react-redux';
|
|
3
4
|
import * as PopupRedux from '@adaptabletools/adaptable/src/Redux/ActionsReducers/PopupRedux';
|
|
@@ -11,9 +12,9 @@ import { usePopupContext } from '@adaptabletools/adaptable/src/View/Components/P
|
|
|
11
12
|
import ErrorBox from '@adaptabletools/adaptable/src/components/ErrorBox';
|
|
12
13
|
import HelpBlock from '@adaptabletools/adaptable/src/components/HelpBlock';
|
|
13
14
|
import { Flex } from '@adaptabletools/adaptable/src/components/Flex';
|
|
14
|
-
import { Select } from '@adaptabletools/adaptable/src/components/Select';
|
|
15
15
|
import { EMPTY_STRING, EMPTY_ARRAY, } from '@adaptabletools/adaptable/src/Utilities/Constants/GeneralConstants';
|
|
16
16
|
import ArrayExtensions from '@adaptabletools/adaptable/src/Utilities/Extensions/ArrayExtensions';
|
|
17
|
+
import { SingleSelect } from '@adaptabletools/adaptable/src/components/NewSelect';
|
|
17
18
|
const IPushPullAddPageComponent = (props) => {
|
|
18
19
|
const [state, setState] = React.useState({
|
|
19
20
|
Folder: '',
|
|
@@ -59,27 +60,14 @@ const IPushPullAddPageComponent = (props) => {
|
|
|
59
60
|
value: iPushPullDomain.Name,
|
|
60
61
|
};
|
|
61
62
|
});
|
|
62
|
-
return (
|
|
63
|
-
React.createElement("form", { onSubmit: (e) => {
|
|
63
|
+
return (_jsx(PanelWithImage, { header: "Add ipushpull Page", glyphicon: "newpage", variant: "primary", children: _jsxs("form", { onSubmit: (e) => {
|
|
64
64
|
e.preventDefault();
|
|
65
65
|
onSubmit();
|
|
66
|
-
} },
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
React.createElement(Select, { disabled: availableFolders.length == 0, options: availableFolders, className: "ab-Popup__IPushPull__select twa:min-w-[50%] twa:mr-2", onChange: (folder) => onFolderChanged(folder), value: state.Folder || undefined, placeholder: "Select Folder", isClearable: true })),
|
|
72
|
-
React.createElement(FormRow, { label: "Page" },
|
|
73
|
-
React.createElement(AdaptableInput, { className: "twa:w-1/2", type: "text", placeholder: "Page Name", value: state.Page, disabled: StringExtensions.IsNullOrEmpty(state.Folder), onChange: onPageNameChange })),
|
|
74
|
-
state.ErrorMessage ? (React.createElement(FormRow, { label: "" },
|
|
75
|
-
React.createElement(ErrorBox, null, state.ErrorMessage))) : null)),
|
|
76
|
-
React.createElement(Flex, { className: "twa:p-2", justifyContent: "space-between" },
|
|
77
|
-
React.createElement(SimpleButton, { tone: "neutral", variant: "outlined", tooltip: "Close", onClick: (e) => {
|
|
78
|
-
e.stopPropagation();
|
|
79
|
-
hidePopup();
|
|
80
|
-
} }, "CLOSE"),
|
|
81
|
-
React.createElement(SimpleButton, { tone: "accent", variant: "raised", type: "submit", disabled: StringExtensions.IsNullOrEmpty(state.Folder) ||
|
|
82
|
-
StringExtensions.IsNullOrEmpty(state.Page), icon: 'check' }, "Add Page")))));
|
|
66
|
+
}, children: [_jsxs(Flex, { flexDirection: "column", className: "twa:p-2 twa:m-2", children: [_jsx(HelpBlock, { className: "twa:mb-1", children: "Select a folder and then choose the name of the new ipushpull page it should contain." }), _jsxs(FormLayout, { className: "twa:m-3", children: [_jsx(FormRow, { label: "Folder", children: _jsx(SingleSelect, { disabled: availableFolders.length == 0, items: availableFolders, className: "ab-Popup__IPushPull__select twa:min-w-[50%] twa:mr-2", onValueChange: (folder) => onFolderChanged(folder), value: state.Folder || undefined, placeholder: "Select Folder" }) }), _jsx(FormRow, { label: "Page", children: _jsx(AdaptableInput, { className: "twa:w-1/2", type: "text", placeholder: "Page Name", value: state.Page, disabled: StringExtensions.IsNullOrEmpty(state.Folder), onChange: onPageNameChange }) }), state.ErrorMessage ? (_jsx(FormRow, { label: "", children: _jsx(ErrorBox, { children: state.ErrorMessage }) })) : null] })] }), _jsxs(Flex, { className: "twa:p-2", justifyContent: "space-between", children: [_jsx(SimpleButton, { tone: "neutral", variant: "outlined", tooltip: "Close", onClick: (e) => {
|
|
67
|
+
e.stopPropagation();
|
|
68
|
+
hidePopup();
|
|
69
|
+
}, children: "CLOSE" }), _jsx(SimpleButton, { tone: "accent", variant: "raised", type: "submit", disabled: StringExtensions.IsNullOrEmpty(state.Folder) ||
|
|
70
|
+
StringExtensions.IsNullOrEmpty(state.Page), icon: 'check', children: "Add Page" })] })] }) }));
|
|
83
71
|
};
|
|
84
72
|
function mapStateToProps(state) {
|
|
85
73
|
return {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { connect } from 'react-redux';
|
|
3
4
|
import { useAdaptable } from '@adaptabletools/adaptable/src/View/AdaptableContext';
|
|
@@ -31,26 +32,13 @@ const IPushPullLoginComponent = (props) => {
|
|
|
31
32
|
const e = event.target;
|
|
32
33
|
setState({ ...state, Password: e.value });
|
|
33
34
|
};
|
|
34
|
-
return (
|
|
35
|
-
React.createElement("form", { onSubmit: (e) => {
|
|
35
|
+
return (_jsx(PanelWithImage, { header: "ipushpull Login Details", glyphicon: "login", variant: "primary", children: _jsxs("form", { onSubmit: (e) => {
|
|
36
36
|
e.preventDefault();
|
|
37
37
|
onSubmit();
|
|
38
|
-
} },
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
React.createElement(FormRow, { label: "User" },
|
|
43
|
-
React.createElement(AdaptableInput, { className: "twa:w-full", type: "email", placeholder: "Email address", value: state.Login, onChange: onLoginChange })),
|
|
44
|
-
React.createElement(FormRow, { label: "Password" },
|
|
45
|
-
React.createElement(AdaptableInput, { className: "twa:w-full", type: "password", placeholder: "Password", value: state.Password, onChange: onPasswordChange })),
|
|
46
|
-
props.pushpullLoginErrorMessage ? (React.createElement(FormRow, { label: "" },
|
|
47
|
-
React.createElement(ErrorBox, null, props.pushpullLoginErrorMessage))) : null)),
|
|
48
|
-
React.createElement(Flex, { className: "twa:p-2", justifyContent: "space-between" },
|
|
49
|
-
React.createElement(SimpleButton, { tone: "neutral", variant: "outlined", tooltip: "Close", onClick: (e) => {
|
|
50
|
-
e.stopPropagation();
|
|
51
|
-
hidePopup();
|
|
52
|
-
} }, "CLOSE"),
|
|
53
|
-
React.createElement(SimpleButton, { tone: "accent", variant: "raised", type: "submit", disabled: StringExtensions.IsNullOrEmpty(state.Password), icon: 'check' }, "Login")))));
|
|
38
|
+
}, children: [_jsxs(Flex, { flexDirection: "column", className: "twa:p-2 twa:m-2", children: [_jsx(HelpBlock, { className: "twa:mb-1", children: "Login to ipushpull using your login (email address) and password." }), _jsxs(FormLayout, { className: "twa:m-3", children: [_jsx(FormRow, { label: "User", children: _jsx(AdaptableInput, { className: "twa:w-full", type: "email", placeholder: "Email address", value: state.Login, onChange: onLoginChange }) }), _jsx(FormRow, { label: "Password", children: _jsx(AdaptableInput, { className: "twa:w-full", type: "password", placeholder: "Password", value: state.Password, onChange: onPasswordChange }) }), props.pushpullLoginErrorMessage ? (_jsx(FormRow, { label: "", children: _jsx(ErrorBox, { children: props.pushpullLoginErrorMessage }) })) : null] })] }), _jsxs(Flex, { className: "twa:p-2", justifyContent: "space-between", children: [_jsx(SimpleButton, { tone: "neutral", variant: "outlined", tooltip: "Close", onClick: (e) => {
|
|
39
|
+
e.stopPropagation();
|
|
40
|
+
hidePopup();
|
|
41
|
+
}, children: "CLOSE" }), _jsx(SimpleButton, { tone: "accent", variant: "raised", type: "submit", disabled: StringExtensions.IsNullOrEmpty(state.Password), icon: 'check', children: "Login" })] })] }) }));
|
|
54
42
|
};
|
|
55
43
|
function mapStateToProps(state) {
|
|
56
44
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewPanelProps } from '@adaptabletools/adaptable/src/View/Components/SharedProps/ViewPanelProps';
|
|
2
|
-
import { IPushPullDomain, IPushPullReport
|
|
2
|
+
import { IPushPullDomain, IPushPullReport } from '@adaptabletools/adaptable/src/AdaptableState/IPushPullState';
|
|
3
3
|
import * as IPushPullRedux from '../Redux/ActionReducers/IPushPullRedux';
|
|
4
4
|
import * as PopupRedux from '@adaptabletools/adaptable/src/Redux/ActionsReducers/PopupRedux';
|
|
5
5
|
import { AdaptableColumn } from '@adaptabletools/adaptable/src/AdaptableState/Common/AdaptableColumn';
|
|
@@ -9,7 +9,6 @@ export interface IPushPullViewPanelComponentProps extends ViewPanelProps {
|
|
|
9
9
|
onIPushPullSendSnapshot: (iPushPulleport: IPushPullReport) => IPushPullRedux.IPushPullSendSnapshotAction;
|
|
10
10
|
onIPushPullStartLiveData: (iPushPulleport: IPushPullReport) => IPushPullRedux.IPushPullStartLiveDataAction;
|
|
11
11
|
onIPushPullStopLiveData: () => IPushPullRedux.IPushPullStopLiveDataAction;
|
|
12
|
-
onNewIPushPullSchedule: (iPushPullSchedule: IPushPullSchedule) => PopupRedux.PopupShowScreenAction;
|
|
13
12
|
onShowIPushPullLogin: () => PopupRedux.PopupShowScreenAction;
|
|
14
13
|
onShowAddIPushPullPage: () => PopupRedux.PopupShowScreenAction;
|
|
15
14
|
Columns: AdaptableColumn[];
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import * as IPushPullRedux from '../Redux/ActionReducers/IPushPullRedux';
|
|
2
3
|
import * as PopupRedux from '@adaptabletools/adaptable/src/Redux/ActionsReducers/PopupRedux';
|
|
3
4
|
import * as React from 'react';
|
|
4
|
-
import ObjectFactory from '@adaptabletools/adaptable/src/Utilities/ObjectFactory';
|
|
5
5
|
import { StringExtensions } from '@adaptabletools/adaptable/src/Utilities/Extensions/StringExtensions';
|
|
6
6
|
import { Flex } from '@adaptabletools/adaptable/src/components/Flex';
|
|
7
|
-
import { Select } from '@adaptabletools/adaptable/src/components/Select';
|
|
8
7
|
import { ButtonExport } from '@adaptabletools/adaptable/src/View/Components/Buttons/ButtonExport';
|
|
9
8
|
import { ButtonPause } from '@adaptabletools/adaptable/src/View/Components/Buttons/ButtonPause';
|
|
10
9
|
import { ButtonPlay } from '@adaptabletools/adaptable/src/View/Components/Buttons/ButtonPlay';
|
|
11
10
|
import join from '@adaptabletools/adaptable/src/components/utils/join';
|
|
12
11
|
import * as GeneralConstants from '@adaptabletools/adaptable/src/Utilities/Constants/GeneralConstants';
|
|
13
|
-
import { ButtonSchedule } from '@adaptabletools/adaptable/src/View/Components/Buttons/ButtonSchedule';
|
|
14
12
|
import { ButtonNewPage } from '@adaptabletools/adaptable/src/View/Components/Buttons/ButtonNewPage';
|
|
15
13
|
import { ButtonLogout } from '@adaptabletools/adaptable/src/View/Components/Buttons/ButtonLogout';
|
|
16
14
|
import { ButtonLogin } from '@adaptabletools/adaptable/src/View/Components/Buttons/ButtonLogin';
|
|
17
15
|
import * as ModuleConstants from '@adaptabletools/adaptable/src/Utilities/Constants/ModuleConstants';
|
|
18
16
|
import { connect } from 'react-redux';
|
|
17
|
+
import { SingleSelect } from '@adaptabletools/adaptable/src/components/NewSelect';
|
|
19
18
|
const IPushPullViewPanelComponent = (props) => {
|
|
20
19
|
const [_, update] = React.useState(0);
|
|
21
20
|
const forceUpdate = () => update((x) => x + 1);
|
|
@@ -44,10 +43,6 @@ const IPushPullViewPanelComponent = (props) => {
|
|
|
44
43
|
const onIPushPullStartLiveData = () => {
|
|
45
44
|
props.onIPushPullStartLiveData(createIPushPullReportFromState());
|
|
46
45
|
};
|
|
47
|
-
const onNewIPushPullSchedule = () => {
|
|
48
|
-
let iPushPullSchedule = ObjectFactory.CreateIPushPullSchedule(createIPushPullReportFromState());
|
|
49
|
-
props.onNewIPushPullSchedule(iPushPullSchedule);
|
|
50
|
-
};
|
|
51
46
|
// perhaps this should be props and in real state?
|
|
52
47
|
const createIPushPullReportFromState = () => {
|
|
53
48
|
return {
|
|
@@ -84,22 +79,7 @@ const IPushPullViewPanelComponent = (props) => {
|
|
|
84
79
|
props.CurrentIPushPullFolder == props.CurrentLiveIPushPullReport.Folder &&
|
|
85
80
|
props.CurrentIPushPullPage == props.CurrentLiveIPushPullReport.Page;
|
|
86
81
|
const elementType = props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
87
|
-
return props.IsIPushPullRunning ? (
|
|
88
|
-
React.createElement(Flex, { className: "twa:min-w-[140px]" },
|
|
89
|
-
React.createElement(Select, { disabled: allReports.length == 0 || isLiveIPushPullReport, options: availableReports, className: `ab-${elementType}__IPushPull__select twa:w-full`, placeholder: "Select Report", onChange: (reportName) => onSelectedReportChanged(reportName), value: props.CurrentIPushPullReportName, isClearable: true })),
|
|
90
|
-
React.createElement(Flex, { className: "twa:min-w-[140px]" },
|
|
91
|
-
React.createElement(Select, { disabled: !hasReport || isLiveIPushPullReport, options: availableFolders, className: `ab-${elementType}__IPushPull__select twa:w-full`, placeholder: "Select Folder", onChange: (folder) => onFolderChanged(folder), value: props.CurrentIPushPullFolder, isClearable: true })),
|
|
92
|
-
React.createElement(Flex, { className: "twa:min-w-[140px]" },
|
|
93
|
-
React.createElement(Select, { disabled: !hasFolder || isLiveIPushPullReport, options: availablePages, className: `ab-${elementType}__IPushPull__select twa:w-full`, placeholder: "Select Page", onChange: (page) => onPageChanged(page), value: props.CurrentIPushPullPage, isClearable: true })),
|
|
94
|
-
React.createElement(Flex, { className: join(props.accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__IPushPull__controls twa:w-full`) },
|
|
95
|
-
React.createElement(Flex, null,
|
|
96
|
-
React.createElement(ButtonExport, { className: `ab-${elementType}__IPushPull__export`, onClick: () => onIPushPullSendSnapshot(), tooltip: "Send Snapshot to ipushpull", disabled: isLiveIPushPullReport || !isCompletedReport, accessLevel: props.accessLevel }),
|
|
97
|
-
isLiveIPushPullReport ? (React.createElement(ButtonPause, { className: `ab-${elementType}__IPushPull__pause twa:fill-red-500`, onClick: () => props.onIPushPullStopLiveData(), tooltip: "Stop sync with ipushpull", disabled: !isLiveIPushPullReport, accessLevel: props.accessLevel })) : (React.createElement(ButtonPlay, { className: `ab-${elementType}__IPushPull__play`, onClick: () => onIPushPullStartLiveData(), tooltip: "Start sync with ipushpull", disabled: isLiveIPushPullReport || !isCompletedReport, accessLevel: props.accessLevel })),
|
|
98
|
-
props.api.entitlementApi.isModuleFullEntitlement('Schedule') && (React.createElement(ButtonSchedule, { className: `ab-${elementType}__IPushPull__schedule`, onClick: () => onNewIPushPullSchedule(), tooltip: "Schedule", disabled: isLiveIPushPullReport || !isCompletedReport, accessLevel: props.accessLevel })),
|
|
99
|
-
React.createElement(ButtonNewPage, { className: `ab-${elementType}__IPushPull__newpage`, onClick: () => props.onShowAddIPushPullPage(), tooltip: "New Page", disabled: !hasFolder || isLiveIPushPullReport, accessLevel: props.accessLevel }),
|
|
100
|
-
React.createElement(ButtonLogout, { className: `ab-${elementType}__IPushPull__logout`, onClick: () => getIPPApi().logoutFromIPushPull(), tooltip: "Logout", disabled: isLiveIPushPullReport, accessLevel: props.accessLevel }))))) : (React.createElement(ButtonLogin, { className: `ab-${elementType}__IPushPull__login twa:ml-1`, onClick: () => props.onShowIPushPullLogin(), tooltip: "Login to ipushpull", accessLevel: props.accessLevel },
|
|
101
|
-
' ',
|
|
102
|
-
"Login"));
|
|
82
|
+
return props.IsIPushPullRunning ? (_jsxs(Flex, { flexDirection: "row", className: `ab-${elementType}__IPushPull__wrap twa:gap-1`, flexWrap: props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap', children: [_jsx(Flex, { className: "twa:min-w-[140px]", children: _jsx(SingleSelect, { disabled: allReports.length == 0 || isLiveIPushPullReport, items: availableReports, className: `ab-${elementType}__IPushPull__select twa:w-full`, placeholder: "Select Report", onValueChange: (reportName) => onSelectedReportChanged(reportName), value: props.CurrentIPushPullReportName }) }), _jsx(Flex, { className: "twa:min-w-[140px]", children: _jsx(SingleSelect, { disabled: !hasReport || isLiveIPushPullReport, items: availableFolders, className: `ab-${elementType}__IPushPull__select twa:w-full`, placeholder: "Select Folder", onValueChange: (folder) => onFolderChanged(folder), value: props.CurrentIPushPullFolder }) }), _jsx(Flex, { className: "twa:min-w-[140px]", children: _jsx(SingleSelect, { disabled: !hasFolder || isLiveIPushPullReport, items: availablePages, className: `ab-${elementType}__IPushPull__select twa:w-full`, placeholder: "Select Page", onValueChange: (page) => onPageChanged(page), value: props.CurrentIPushPullPage }) }), _jsx(Flex, { className: join(props.accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__IPushPull__controls twa:w-full`), children: _jsxs(Flex, { children: [_jsx(ButtonExport, { className: `ab-${elementType}__IPushPull__export`, onClick: () => onIPushPullSendSnapshot(), tooltip: "Send Snapshot to ipushpull", disabled: isLiveIPushPullReport || !isCompletedReport, accessLevel: props.accessLevel }), isLiveIPushPullReport ? (_jsx(ButtonPause, { className: `ab-${elementType}__IPushPull__pause twa:fill-red-500`, onClick: () => props.onIPushPullStopLiveData(), tooltip: "Stop sync with ipushpull", disabled: !isLiveIPushPullReport, accessLevel: props.accessLevel })) : (_jsx(ButtonPlay, { className: `ab-${elementType}__IPushPull__play`, onClick: () => onIPushPullStartLiveData(), tooltip: "Start sync with ipushpull", disabled: isLiveIPushPullReport || !isCompletedReport, accessLevel: props.accessLevel })), _jsx(ButtonNewPage, { className: `ab-${elementType}__IPushPull__newpage`, onClick: () => props.onShowAddIPushPullPage(), tooltip: "New Page", disabled: !hasFolder || isLiveIPushPullReport, accessLevel: props.accessLevel }), _jsx(ButtonLogout, { className: `ab-${elementType}__IPushPull__logout`, onClick: () => getIPPApi().logoutFromIPushPull(), tooltip: "Logout", disabled: isLiveIPushPullReport, accessLevel: props.accessLevel })] }) })] })) : (_jsxs(ButtonLogin, { className: `ab-${elementType}__IPushPull__login twa:ml-1`, onClick: () => props.onShowIPushPullLogin(), tooltip: "Login to ipushpull", accessLevel: props.accessLevel, children: [' ', "Login"] }));
|
|
103
83
|
};
|
|
104
84
|
function mapStateToProps(state) {
|
|
105
85
|
return {
|
|
@@ -118,11 +98,6 @@ function mapDispatchToProps(dispatch) {
|
|
|
118
98
|
onIPushPullSendSnapshot: (iPushPullReport) => dispatch(IPushPullRedux.IPushPullSendSnapshot(iPushPullReport)),
|
|
119
99
|
onIPushPullStartLiveData: (iPushPullReport) => dispatch(IPushPullRedux.IPushPullStartLiveData(iPushPullReport)),
|
|
120
100
|
onIPushPullStopLiveData: () => dispatch(IPushPullRedux.IPushPullStopLiveData()),
|
|
121
|
-
onNewIPushPullSchedule: (iPushPullSchedule) => dispatch(PopupRedux.PopupShowScreen(ModuleConstants.ScheduleModuleId, 'SchedulePopup', {
|
|
122
|
-
action: 'New',
|
|
123
|
-
source: 'Toolbar',
|
|
124
|
-
value: iPushPullSchedule,
|
|
125
|
-
})),
|
|
126
101
|
onShowIPushPullLogin: () => dispatch(PopupRedux.PopupShowScreen(ModuleConstants.IPushPullModuleId, 'IPushPullLoginPopup', undefined, {
|
|
127
102
|
footer: false,
|
|
128
103
|
})),
|