Skip to content

Commit a276dd9

Browse files
committed
Fixed: Fix the issue where SFTP still displays Settings
1 parent af24ab5 commit a276dd9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/app/elements/chat/chat.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ export class ElementChatComponent implements OnInit, OnDestroy, AfterViewInit {
5454

5555
get isShowSetting() {
5656
const connectMethods = ['koko', 'lion', 'tinker', 'panda'];
57+
58+
// sftp 不展示设置按钮
59+
if (this.currentView.protocol === 'sftp') {
60+
return false;
61+
}
62+
5763
return (
5864
this.currentView.hasOwnProperty('connectMethod') &&
5965
this.currentView.connected &&

0 commit comments

Comments
 (0)