Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
6414c78a
Commit
6414c78a
authored
Jun 26, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修复rdp右击问题
parent
0d87dbcd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
asset-tree.component.ts
src/app/elements/asset-tree/asset-tree.component.ts
+13
-2
guacamole.component.ts
src/app/elements/guacamole/guacamole.component.ts
+1
-0
No files found.
src/app/elements/asset-tree/asset-tree.component.ts
View file @
6414c78a
...
...
@@ -160,14 +160,25 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
}
onRightClick
(
event
,
treeId
,
treeNode
)
{
if
(
!
treeNode
||
treeNode
.
isParent
)
{
return
null
;
}
const
host
=
treeNode
.
meta
.
asset
;
if
(
host
.
protocol
.
toLowerCase
()
===
'rdp'
)
{
let
findSSHProtocol
=
false
;
const
protocols
=
host
.
protocols
||
[];
if
(
host
.
protocol
)
{
protocols
.
push
(
host
.
protocol
);
}
for
(
let
i
=
0
;
i
<=
protocols
.
length
;
i
++
)
{
const
protocol
=
protocols
[
i
];
if
(
protocol
.
startsWith
(
'ssh'
))
{
findSSHProtocol
=
true
;
}
}
if
(
!
findSSHProtocol
)
{
alert
(
'Windows 请使用Ctrl+Shift+Alt呼出侧边栏上传下载'
);
}
if
(
!
treeNode
&&
event
.
target
.
tagName
.
toLowerCase
()
!==
'button'
&&
$
(
event
.
target
).
parents
(
'a'
).
length
===
0
)
{
this
.
zTree
.
cancelSelectedNode
();
this
.
showRMenu
(
event
.
clientX
,
event
.
clientY
);
...
...
src/app/elements/guacamole/guacamole.component.ts
View file @
6414c78a
...
...
@@ -41,6 +41,7 @@ export class ElementGuacamoleComponent implements OnInit {
},
error
=>
{
if
(
!
this
.
registered
)
{
console
.
log
(
'Register host error, register token then connect'
);
this
.
registerToken
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment