All files / app/page/settings/template template.component.html

36.36% Statements 8/22
50% Branches 2/4
0% Functions 0/2
46.15% Lines 6/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 232x       1x 1x                       2x 2x   1x    
@if (store.account.admin) {
  <button type="button"
          (click)="uploadFile.click()"
          i18n-title
          title="Upload Template"
          class="upload" i18n>+ upload dev template</button>
 
  <input #uploadFile
         type="file"
         class="upload"
         (change)="upload(uploadFile.files!)">
 
  @for (e of serverError; track e) {
    <span><!-- Unexpected Error --></span>
    <div class="error">{{ e }}</div>
  }
}
@if (query.error?.status !== 403) {
  <app-template-list #list [page]="query.page"></app-template-list>
} @else {
  <div class="error-403" i18n>Access Denied</div>
}