Skip to content

Commit

Permalink
Merge pull request #1231 from jumpserver/dev
Browse files Browse the repository at this point in the history
v4.7.0
  • Loading branch information
BaiJiangJie authored Feb 20, 2025
2 parents b2ce9b2 + 4aed9f6 commit 94badcc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/app/elements/connect/connect.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,17 +234,20 @@ export class ElementConnectComponent implements OnInit, OnDestroy {
}

getConnectData(accounts: Account[], asset: Asset): Promise<ConnectData> {
let dialogWidth = '600px';
const preConnectData = this._appSvc.getPreConnectData(asset);
const isValid = this.checkPreConnectDataForAuto(asset, accounts, preConnectData);
if (isValid) {
return Promise.resolve(preConnectData);
}

if (this._i18n.getLangCode() === 'pt-br') {
dialogWidth = '730px'
}
this._appSvc.connectDialogShown = true;
const dialogRef = this._dialog.open(ElementConnectDialogComponent, {
minHeight: '300px',
height: 'auto',
width: '600px',
width: dialogWidth,
data: {accounts, asset, preConnectData}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
display: flex;
flex-direction: column;
height: 100%;
overflow-y: scroll;
}

.head {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ div, elements-term, elements-guacamole {
display: flex;
flex-flow: row wrap;
align-content: flex-start;
overflow-y: scroll;
}

.sub-view {
Expand Down
3 changes: 2 additions & 1 deletion src/app/elements/face-monitor/face-monitor.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<div class="box" [class.minimized]="isMinimized" *ngIf="isVisible">
<div class="box-header">
<span class="box-title" style="color: red" *ngIf="monitoringTabCount">●&nbsp;[{{ monitoringTabCount }}]个会话正在被监控中</span>
<span class="box-title" style="color: red" *ngIf="monitoringTabCount">●&nbsp;[{{ monitoringTabCount }}
]{{ 'SessionIsBeingMonitored' | translate }}</span>
<div class="box-controls">
<button (click)="minimizeBox()">
<i *ngIf="!isMinimized" class="fa fa-window-minimize"></i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ export class ElementACLDialogComponent implements OnInit {
} else if (typeof error === 'object') {
if (error.detail) {
error = error.detail;
} else {
error = JSON.stringify(error);
}
error = JSON.stringify(error);
}
return error;
}
Expand Down

0 comments on commit 94badcc

Please sign in to comment.