Skip to content

Commit

Permalink
made export button conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
jessewashburn committed Jan 31, 2025
1 parent 8d0e99f commit ab82497
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<mat-toolbar-row class="primary-color font-size-1">
<span i18n>myPlanet</span>
<span class="toolbar-fill"></span>
<button mat-raised-button color="accent" (click)="exportAll()">
<button mat-raised-button color="accent" (click)="exportAll()" *ngIf="!isEmpty">
Export All
</button>
</mat-toolbar-row>
Expand All @@ -26,7 +26,7 @@
<mat-panel-title>{{planet.nameDoc?.name || planet.doc?.name}} ({{planet.children.length}})</mat-panel-title>
</mat-expansion-panel-header>
<planet-myplanet-table dataType="logs" [data]="planet.children"></planet-myplanet-table>
<button mat-raised-button color="accent" (click)="exportSingle(planet)" style="margin-right: 2rem;">
<button mat-raised-button color="accent" (click)="exportSingle(planet)" style="margin-right: 2rem;" *ngIf="!isEmpty">
Export
</button>
</mat-expansion-panel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<mat-toolbar-row class="primary-color font-size-1">
<span i18n>myPlanet on { planetType, select, center {Nations} other {Communities} }</span>
<span class="toolbar-fill"></span>
<button mat-raised-button color="accent" (click)="exportAll()">
<button mat-raised-button color="accent" (click)="exportAll()" *ngIf="!isEmpty">
Export All
</button>
</mat-toolbar-row>
Expand All @@ -41,7 +41,7 @@
<mat-panel-title>{{planet.nameDoc?.name || planet.doc?.name}} ({{planet.children.length}})</mat-panel-title>
</mat-expansion-panel-header>
<planet-myplanet-table [data]="planet.children"></planet-myplanet-table>
<button mat-raised-button color="accent" (click)="exportSingle(planet)" style="margin-right: 2rem;">
<button mat-raised-button color="accent" (click)="exportSingle(planet)" style="margin-right: 2rem;" *ngIf="!isEmpty">
Export
</button>
</mat-expansion-panel>
Expand Down

0 comments on commit ab82497

Please sign in to comment.