diff --git a/ui/src/app/pages/fleet/agents/view/agent.view.component.html b/ui/src/app/pages/fleet/agents/view/agent.view.component.html
index fc0f162e8..4727c52b5 100644
--- a/ui/src/app/pages/fleet/agents/view/agent.view.component.html
+++ b/ui/src/app/pages/fleet/agents/view/agent.view.component.html
@@ -42,21 +42,42 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/ui/src/app/pages/fleet/agents/view/agent.view.component.scss b/ui/src/app/pages/fleet/agents/view/agent.view.component.scss
index e219f88b4..399a8c231 100644
--- a/ui/src/app/pages/fleet/agents/view/agent.view.component.scss
+++ b/ui/src/app/pages/fleet/agents/view/agent.view.component.scss
@@ -21,7 +21,10 @@ h4 {
line-height: 2rem;
margin-bottom: 1.5rem;
}
-
+nb-tab {
+ padding: 0 !important;
+ overflow: hidden !important;
+}
nb-card {
border: transparent;
border-radius: 0.5rem;
diff --git a/ui/src/app/pages/fleet/agents/view/agent.view.component.ts b/ui/src/app/pages/fleet/agents/view/agent.view.component.ts
index ca6091fa6..26eb562f7 100644
--- a/ui/src/app/pages/fleet/agents/view/agent.view.component.ts
+++ b/ui/src/app/pages/fleet/agents/view/agent.view.component.ts
@@ -38,6 +38,9 @@ export class AgentViewComponent implements OnInit, OnDestroy {
agentSubscription: Subscription;
+ configFile = 'configFile'
+ default = 'default'
+
constructor(
protected agentsService: AgentsService,
protected route: ActivatedRoute,
diff --git a/ui/src/app/shared/components/orb/agent/agent-backends/agent-backends.component.scss b/ui/src/app/shared/components/orb/agent/agent-backends/agent-backends.component.scss
index 29b385537..11c6efebb 100644
--- a/ui/src/app/shared/components/orb/agent/agent-backends/agent-backends.component.scss
+++ b/ui/src/app/shared/components/orb/agent/agent-backends/agent-backends.component.scss
@@ -8,7 +8,7 @@ h4 {
}
nb-tab {
- padding: 1rem 0.5rem !important;
+ padding-bottom: 0 !important;
}
nb-card {
@@ -151,7 +151,3 @@ nb-card {
background-color: #3089fc !important;
}
}
-
-.summary-accent {
- color: #969fb9 !important;
-}
\ No newline at end of file
diff --git a/ui/src/app/shared/components/orb/agent/agent-groups/agent-groups.component.scss b/ui/src/app/shared/components/orb/agent/agent-groups/agent-groups.component.scss
index e4e1ba59a..7fd357c75 100644
--- a/ui/src/app/shared/components/orb/agent/agent-groups/agent-groups.component.scss
+++ b/ui/src/app/shared/components/orb/agent/agent-groups/agent-groups.component.scss
@@ -127,11 +127,14 @@ nb-card {
cursor: pointer !important;
outline: none !important;
overflow: hidden !important;
+ margin-right: 5px;
+ padding: 5px 5px 8px 6px !important;
}
.agent-group-accent {
color: #ffffff !important;
font-weight: 500;
+
}
.error-accent {
diff --git a/ui/src/app/shared/components/orb/agent/agent-provisioning/agent-provisioning.component.html b/ui/src/app/shared/components/orb/agent/agent-provisioning/agent-provisioning.component.html
index 54f375229..a064d02a3 100644
--- a/ui/src/app/shared/components/orb/agent/agent-provisioning/agent-provisioning.component.html
+++ b/ui/src/app/shared/components/orb/agent/agent-provisioning/agent-provisioning.component.html
@@ -1,89 +1,42 @@
-
+
- Provisioning Commands
-
-
- {{ option | titlecase }}
-
-
-
+ Default Provisioning Command
-
-
-
- Default Provisioning Command
-
-
-
-
-
-
- {{ defaultCommandShow }}
-
-
-
-
-
-
- Provisioning Command with Configuration File
-
-
-
-
-
-
-
-
- {{ fileConfigCommandShow }}
-
-
-
-
-
- Click here
-
- to learn more about how create and apply configuration files.
-
-
+
+ {{ defaultCommandShow }}
+
+
+
+
+
+
+ Provisioning Command with Configuration File
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ fileConfigCommandShow }}
+
+
+
+
+
diff --git a/ui/src/app/shared/components/orb/agent/agent-provisioning/agent-provisioning.component.scss b/ui/src/app/shared/components/orb/agent/agent-provisioning/agent-provisioning.component.scss
index 15a2ff7c6..171ac1ce0 100644
--- a/ui/src/app/shared/components/orb/agent/agent-provisioning/agent-provisioning.component.scss
+++ b/ui/src/app/shared/components/orb/agent/agent-provisioning/agent-provisioning.component.scss
@@ -30,8 +30,9 @@ nb-card {
nb-card-body {
border-bottom-left-radius: 0.5rem;
border-bottom-right-radius: 0.5rem;
- margin: 0 2rem 0 2rem;
- padding: 0;
+ margin: 0;
+ padding: 0 1rem 0 1rem;
+ background-color: #1c2339 !important;
label {
color: #969fb9;
@@ -49,12 +50,9 @@ nb-card {
pre {
display: flex;
- flex-direction: row-reverse;
- flex-wrap: wrap;
- align-content: space-between;
- align-items: flex-start;
- justify-content: space-between;
+
margin: 0;
+ height: fit-content !important;
background: transparent;
padding: 0.75rem;
@@ -65,15 +63,17 @@ nb-card {
background: transparent;
border: 0 transparent;
color: #969fb9;
- top: -0.25rem;
- float: right;
- right: -0.5rem;
outline: none;
+ position: absolute;
+ top: 0;
+ right: 1.3rem;
}
code {
color: #ffffff;
line-height: 2.5 !important;
+ font-size: 14px !important;
+ float: left;
}
}
}
@@ -121,15 +121,5 @@ nb-card {
button {
box-shadow: none !important;
outline: none !important;
- margin-right: 15px;
-}
-a {
- white-space: nowrap !important;
- padding: 0 0.3rem !important;
- background-color: #ff9f05 !important;
- font-weight: 700 !important;
- text-decoration: none !important;
- color: #ffffff !important;
- border-radius: 10px;
- fill: #3089fc !important;
}
+
diff --git a/ui/src/app/shared/components/orb/agent/agent-provisioning/agent-provisioning.component.ts b/ui/src/app/shared/components/orb/agent/agent-provisioning/agent-provisioning.component.ts
index d3eead01b..45ce6f5ea 100644
--- a/ui/src/app/shared/components/orb/agent/agent-provisioning/agent-provisioning.component.ts
+++ b/ui/src/app/shared/components/orb/agent/agent-provisioning/agent-provisioning.component.ts
@@ -8,7 +8,9 @@ import { Agent, AgentStates } from "app/common/interfaces/orb/agent.interface";
styleUrls: ["./agent-provisioning.component.scss"],
})
export class AgentProvisioningComponent implements OnInit {
+
@Input() agent: Agent;
+ @Input() provisioningType: string;
agentStates = AgentStates;
@@ -23,18 +25,24 @@ export class AgentProvisioningComponent implements OnInit {
fileConfigCommandCopy: string;
fileConfigCommandShow: string;
- hideCommand: boolean;
- hideCommand2: boolean;
- hideCommand3: boolean;
+ provisioningTypeMode = {
+ default: false,
+ configFile: false,
+ }
constructor() {
this.copyCommandIcon = "copy-outline";
}
ngOnInit(): void {
- this.hideCommand2 = false;
- this.hideCommand3 = true;
- this.hideCommand = this.agent?.state !== this.agentStates.new;
+ console.log(this.provisioningType);
+ if (this.provisioningType === 'default') {
+ this.provisioningTypeMode.default = true;
+ }
+ else if (this.provisioningType === 'configFile') {
+ this.provisioningTypeMode.configFile = true;
+
+ }
this.makeCommand2Copy();
}
@@ -82,18 +90,4 @@ orbcommunity/orb-agent run -c /usr/local/orb/agent.yaml`;
-v \${PWD}/:/usr/local/orb/ \\
orbcommunity/orb-agent run -c /usr/local/orb/agent.yaml`;
}
-
-toggleProvisioningCommand(command: string) {
- switch (command) {
- case 'hideCommand':
- this.hideCommand = !this.hideCommand;
- break;
- case 'hideCommand2':
- this.hideCommand2 = !this.hideCommand2;
- break;
- case 'hideCommand3':
- this.hideCommand3 = !this.hideCommand3;
- break;
- }
-}
}