Skip to content

Commit

Permalink
perf: 未部署发布机,连接远程应用资产加说明
Browse files Browse the repository at this point in the history
  • Loading branch information
w940853815 committed May 8, 2024
1 parent d0819b2 commit 82e4584
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ <h3>{{"Connect" | translate}} - {{ asset.name | truncatechars:30 }}</h3>
[mat-dialog-close]="outputData"
class="confirm-btn"
color="primary"
[title]="connectDisabledTips()"
mat-raised-button
type="submit"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,16 @@ export class ElementConnectDialogComponent implements OnInit {
}
return false;
}
connectDisabledTips() {
if (this.isConnectDisabled()) {
if (this.accounts.length === 0) {
return this._i18n.instant('connectDisabledTipsNoAccount');
} else {
return this._i18n.instant('connectDisabledTipsNoMethod');
}
}
return '';
}

onConfirm(downloadRDP = false) {
this.outputData.account = this.accountSelected;
Expand Down
4 changes: 3 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,5 +200,7 @@
"Current online": "Current online",
"Token expired": "Token has expired",
"No protocol available": "No protocol available",
"VirtualApp": "Virtual App"
"VirtualApp": "Virtual App",
"connectDisabledTipsNoAccount": "Tips: No available accounts, cannot connect. Please contact the administrator to add authorized accounts under Asset Authorization",
"connectDisabledTipsNoMethod": "Tips: Deployment machine not yet deployed, cannot connect. Please contact the administrator to add an application deployment machine"
}
4 changes: 3 additions & 1 deletion src/assets/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,7 @@
"Token expired": "トークンの有効期限が切れました",
"No protocol available": "利用可能なプロトコルがありません",
"Stop": "Stop",
"VirtualApp": "仮想アプリ"
"VirtualApp": "仮想アプリ",
"connectDisabledTipsNoAccount": "ヒント:利用可能なアカウントがありません。接続できません。管理者に連絡して、資産認証の下で承認されたアカウントを追加してください",
"connectDisabledTipsNoMethod": "ヒント:デプロイメントマシンがまだデプロイされていません。接続できません。管理者に連絡して、アプリケーションのデプロイメントマシンを追加してください"
}
4 changes: 3 additions & 1 deletion src/assets/i18n/zh-hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@
"Token expired": "Token 已過期, 請重新連接",
"No protocol available": "沒有可用的協議",
"Stop": "停止",
"VirtualApp": "虛擬應用"
"VirtualApp": "虛擬應用",
"connectDisabledTipsNoAccount": "提示:沒有可用帳號,無法連接。請聯繫管理員,在资产授权下添加授权帐号",
"connectDisabledTipsNoMethod": "提示:尚未部署发布机,無法連接。請聯繫管理員添加應用发布机"
}

4 changes: 3 additions & 1 deletion src/assets/i18n/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@
"Token expired": "Token 已过期, 请重新连接",
"No protocol available": "没有可用的协议",
"Stop": "停止",
"VirtualApp": "虚拟应用"
"VirtualApp": "虚拟应用",
"connectDisabledTipsNoAccount": "提示:没有可用账号,无法连接,请联系管理员资产授权-添加授权账号",
"connectDisabledTipsNoMethod": "提示:还未部署发布机,无法连接,请联系管理员添加应用发布机"
}

0 comments on commit 82e4584

Please sign in to comment.