Skip to content
Snippets Groups Projects
Commit b9cda5b1 authored by Nathan Hertz's avatar Nathan Hertz
Browse files

Extracted status button out into its own component; might end up

changing this later
parent 8465e98d
No related branches found
No related tags found
1 merge request!182WS-191: Header component for capability request status page UI
This commit is part of merge request !182. Comments created here will be created in the context of that merge request.
<div id="request-id-and-status">
<h2 id="request-id" class="left-aligned">Request #7</h2>
<button id="request-status-button" type="button" class="btn btn-success right-aligned">
Running<span class="fas fa-play"></span>
</button>
<h2 id="request-id">Request #7</h2>
<app-running-status-button id="request-status"></app-running-status-button>
</div>
<div id="created-and-updated-timestamps">
<h4 id="created-time" class="left-aligned timestamp">Created 2 hours ago</h4>
<h4 id="last-updated-time" class="right-aligned timestamp">Updated 2 seconds ago</h4>
<h5 id="created-time" class="timestamp">Created 2 hours ago</h5>
<h5 id="last-updated-time" class="timestamp">Updated 2 seconds ago</h5>
</div>
......@@ -5,12 +5,6 @@ div {
grid-template-columns: repeat(2, 1fr);
}
.left-aligned {
justify-self: left;
}
.right-aligned {
justify-self: right;
}
.timestamp {
color: #757575;
}
......@@ -19,19 +13,20 @@ div {
grid-template-areas: "id status";
border-bottom: 1px solid #e0e0e0;
}
#request-id {
grid-area: id;
justify-self: left;
}
#request-status-button {
grid-area: status;
#request-status {
justify-self: right;
}
#created-and-updated-timestamps {
grid-template-areas: "created updated";
border-bottom: 1px solid #bdbdbd;
}
#created-time {
justify-self: left;
}
#last-updated-time {
justify-self: right;
}
import { Component, OnInit } from "@angular/core";
import { FormsModule } from "@angular/forms";
import { CapabilityLauncherService } from "./services/capability-launcher.service";
import { CapabilityRequest } from "./model/capability-request";
import { CapabilityExecution } from "./model/capability-execution";
......
......@@ -5,9 +5,15 @@ import { WorkspacesComponent } from "./workspaces.component";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { CapabilityRequestComponent } from "./components/capability-request/capability-request.component";
import { RequestHeaderComponent } from "./components/capability-request/components/request-header/request-header.component";
import { RunningStatusButtonComponent } from "./components/capability-request/components/status-buttons/running-status-button/running-status-button.component";
@NgModule({
declarations: [WorkspacesComponent, CapabilityRequestComponent, RequestHeaderComponent],
declarations: [
WorkspacesComponent,
CapabilityRequestComponent,
RequestHeaderComponent,
RunningStatusButtonComponent,
],
imports: [CommonModule, WorkspacesRoutingModule, ReactiveFormsModule, FormsModule],
})
export class WorkspacesModule {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment