Skip to content

Commit 13d1c0f

Browse files
committed
Update columnDef in TableCodespacesUsageComponent and move export button
1 parent a2d8812 commit 13d1c0f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/app/components/usage/codespaces/table-codespaces-usage/table-codespaces-usage.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export class TableCodespacesUsageComponent implements OnChanges, AfterViewInit {
139139
} else if (this.tableType === 'repo') {
140140
columns = [
141141
{
142-
columnDef: 'repositorySlug',
142+
columnDef: 'repo',
143143
header: 'Repository',
144144
cell: (workflowItem: CodespacesUsageItem) => `${workflowItem.repositorySlug}`,
145145
sticky: true

src/app/components/usage/usage.component.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ <h1 class="mat-headline-2" style="user-select: none; font-weight: 800; text-alig
1313
<mat-progress-bar *ngIf="progress && progress < 99" mode="determinate" [value]="progress"></mat-progress-bar>
1414
<mat-progress-bar *ngIf="progress && progress >= 99" mode="indeterminate"></mat-progress-bar>
1515

16-
<button mat-button *ngIf="usage" (click)="exportHtml()">
17-
<mat-icon>download</mat-icon>
18-
Export
19-
</button>
20-
2116
<div id="usage-report" *ngIf="usage">
2217
<form class="mat-app-background">
2318
<mat-form-field appearance="fill">
@@ -57,6 +52,10 @@ <h1 class="mat-headline-2" style="user-select: none; font-weight: 800; text-alig
5752
<mat-button-toggle value="cost">Cost</mat-button-toggle>
5853
</mat-button-toggle-group>
5954
</div>
55+
<button mat-button *ngIf="usage" (click)="exportHtml()" style="margin-left: auto;">
56+
<mat-icon>download</mat-icon>
57+
Export
58+
</button>
6059
</form>
6160
<mat-tab-group (selectedTabChange)="tabChanged($event)">
6261
<mat-tab *ngIf="this.usageLines.actions.length > 0">

src/material.theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ $light-theme: mat.define-light-theme((
152152
background: #0d1117 !important;
153153
}
154154

155+
.mat-column-owner,
155156
.mat-column-username,
156157
.mat-column-workflow,
157158
.mat-column-repo,

0 commit comments

Comments
 (0)