Skip to content

Commit

Permalink
Update columnDef in TableCodespacesUsageComponent and move export button
Browse files Browse the repository at this point in the history
  • Loading branch information
austenstone committed Mar 8, 2024
1 parent a2d8812 commit 13d1c0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class TableCodespacesUsageComponent implements OnChanges, AfterViewInit {
} else if (this.tableType === 'repo') {
columns = [
{
columnDef: 'repositorySlug',
columnDef: 'repo',
header: 'Repository',
cell: (workflowItem: CodespacesUsageItem) => `${workflowItem.repositorySlug}`,
sticky: true
Expand Down
9 changes: 4 additions & 5 deletions src/app/components/usage/usage.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ <h1 class="mat-headline-2" style="user-select: none; font-weight: 800; text-alig
<mat-progress-bar *ngIf="progress && progress < 99" mode="determinate" [value]="progress"></mat-progress-bar>
<mat-progress-bar *ngIf="progress && progress >= 99" mode="indeterminate"></mat-progress-bar>

<button mat-button *ngIf="usage" (click)="exportHtml()">
<mat-icon>download</mat-icon>
Export
</button>

<div id="usage-report" *ngIf="usage">
<form class="mat-app-background">
<mat-form-field appearance="fill">
Expand Down Expand Up @@ -57,6 +52,10 @@ <h1 class="mat-headline-2" style="user-select: none; font-weight: 800; text-alig
<mat-button-toggle value="cost">Cost</mat-button-toggle>
</mat-button-toggle-group>
</div>
<button mat-button *ngIf="usage" (click)="exportHtml()" style="margin-left: auto;">
<mat-icon>download</mat-icon>
Export
</button>
</form>
<mat-tab-group (selectedTabChange)="tabChanged($event)">
<mat-tab *ngIf="this.usageLines.actions.length > 0">
Expand Down
1 change: 1 addition & 0 deletions src/material.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ $light-theme: mat.define-light-theme((
background: #0d1117 !important;
}

.mat-column-owner,
.mat-column-username,
.mat-column-workflow,
.mat-column-repo,
Expand Down

0 comments on commit 13d1c0f

Please sign in to comment.