chore: 🤖 add rdp target type

This commit is contained in:
Dharini Jeeva authored and Dharini committed 2025-09-03 16:00:12 -07:00
1 parent e1696e9a4d
commit d2d351c9f7
7 files changed
+48 -4

No files matched your search

+15 -1
View File
@@ -9,7 +9,13 @@ import { service } from '@ember/service';
export const TYPE_TARGET_TCP = 'tcp';
export const TYPE_TARGET_SSH = 'ssh';
export const TYPES_TARGET = Object.freeze([TYPE_TARGET_TCP, TYPE_TARGET_SSH]);
export const TYPE_TARGET_RDP = 'rdp';
export const TYPES_TARGET = Object.freeze([
TYPE_TARGET_TCP,
TYPE_TARGET_SSH,
TYPE_TARGET_RDP,
]);
export default class TargetModel extends GeneratedTargetModel {
// =services
@@ -347,4 +353,12 @@ export default class TargetModel extends GeneratedTargetModel {
get isSSH() {
return this.type === TYPE_TARGET_SSH;
}
/**
* True if the target type is rdp.
* @type {boolean}
*/
get isRDP() {
return this.type === TYPE_TARGET_RDP;
}
}