Skip to content

Commit 94badcc

Browse files
authored
Merge pull request #1231 from jumpserver/dev
v4.7.0
2 parents b2ce9b2 + 4aed9f6 commit 94badcc

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

src/app/elements/connect/connect.component.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,20 @@ export class ElementConnectComponent implements OnInit, OnDestroy {
234234
}
235235

236236
getConnectData(accounts: Account[], asset: Asset): Promise<ConnectData> {
237+
let dialogWidth = '600px';
237238
const preConnectData = this._appSvc.getPreConnectData(asset);
238239
const isValid = this.checkPreConnectDataForAuto(asset, accounts, preConnectData);
239240
if (isValid) {
240241
return Promise.resolve(preConnectData);
241242
}
242-
243+
if (this._i18n.getLangCode() === 'pt-br') {
244+
dialogWidth = '730px'
245+
}
243246
this._appSvc.connectDialogShown = true;
244247
const dialogRef = this._dialog.open(ElementConnectDialogComponent, {
245248
minHeight: '300px',
246249
height: 'auto',
247-
width: '600px',
250+
width: dialogWidth,
248251
data: {accounts, asset, preConnectData}
249252
});
250253

src/app/elements/content/content-window/content-view/content-view.component.css

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
display: flex;
44
flex-direction: column;
55
height: 100%;
6+
overflow-y: scroll;
67
}
78

89
.head {

src/app/elements/content/content-window/content-window.component.css

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ div, elements-term, elements-guacamole {
1818
display: flex;
1919
flex-flow: row wrap;
2020
align-content: flex-start;
21+
overflow-y: scroll;
2122
}
2223

2324
.sub-view {

src/app/elements/face-monitor/face-monitor.component.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<div class="box" [class.minimized]="isMinimized" *ngIf="isVisible">
22
<div class="box-header">
3-
<span class="box-title" style="color: red" *ngIf="monitoringTabCount">●&nbsp;[{{ monitoringTabCount }}]个会话正在被监控中</span>
3+
<span class="box-title" style="color: red" *ngIf="monitoringTabCount">●&nbsp;[{{ monitoringTabCount }}
4+
]{{ 'SessionIsBeingMonitored' | translate }}</span>
45
<div class="box-controls">
56
<button (click)="minimizeBox()">
67
<i *ngIf="!isMinimized" class="fa fa-window-minimize"></i>

src/app/services/connect-token/acl-dialog/acl-dialog.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ export class ElementACLDialogComponent implements OnInit {
5151
} else if (typeof error === 'object') {
5252
if (error.detail) {
5353
error = error.detail;
54+
} else {
55+
error = JSON.stringify(error);
5456
}
55-
error = JSON.stringify(error);
5657
}
5758
return error;
5859
}

0 commit comments

Comments
 (0)