-
-
-
-
-
-
-
-
- {
- this.state.session['copy'] === '1' || this.state.session['paste'] === '1' ?
-
-
-
- : undefined
- }
-
-
- {
- this.state.protocol === 'vnc' ?
- <>
-
-
-
-
-
-
- > : undefined
- }
-
- {
- this.state.protocol === 'rdp' && this.state.showFileSystem ?
- <>
-
-
-
-
- > : undefined
- }
-
- {
- this.state.protocol === 'rdp' ?
- <>
-
-
-
-
-
-
- > : undefined
- }
-
- {
- this.state.protocol === 'ssh' ?
- <>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- > : undefined
- }
-
-
-
{
- this.focus();
- this.setState({
- fileSystemVisible: false
- });
- }}
- visible={this.state.fileSystemVisible}
- >
-
-
-
-
-
{
- this.setState({
- statsVisible: false,
- });
- this.focus();
- if (this.statsRef) {
- this.statsRef.delInterval();
- }
- }}
- visible={this.state.statsVisible}
- >
-
-
-
- {
- this.state.clipboardVisible ?
-
{
- this.clipboardFormRef.current
- .validateFields()
- .then(values => {
- let clipboardText = values['clipboard'];
-
- this.sendClipboard({
- 'data': clipboardText,
- 'type': 'text/plain'
- });
-
- this.setState({
- clipboardText: clipboardText,
- clipboardVisible: false
- });
- })
- .catch(info => {
-
- });
- }}
- confirmLoading={this.state.confirmLoading}
- onCancel={() => {
- this.focus();
- this.setState({
- clipboardVisible: false
- })
- }}
- >
-
-
-
-
- : undefined
- }
-
-
- );
- }
-}
-
-export default Access;
diff --git a/web/src/components/asset/AssetUserGroupBind.js b/web/src/components/asset/AssetUserGroupBind.js
index 292c9f1..2ee31b7 100644
--- a/web/src/components/asset/AssetUserGroupBind.js
+++ b/web/src/components/asset/AssetUserGroupBind.js
@@ -27,13 +27,13 @@ const AssetUserGroupBind = ({id, visible, handleOk, handleCancel, confirmLoading
let items = await authorisedApi.GetSelected(queryParam);
setSelectedUserGroupIds(items);
- let userGroups = await userGroupApi.GetAll();
+ let userGroups = await userGroupApi.getAll();
setUserGroups(userGroups);
- let strategies = await strategyApi.GetAll();
+ let strategies = await strategyApi.getAll();
setStrategies(strategies);
- let commandFilters = await commandFilterApi.GetAll();
+ let commandFilters = await commandFilterApi.getAll();
setCommandFilters(commandFilters);
}