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

22.5% Statements 9/40
11.11% Branches 2/18
0% Functions 0/2
35% Lines 7/20

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 23 24 25 26 27 28 29 30 31 321x 3x           1x                 1x                 3x 3x   1x      
<ng-container *mobxAutorun>
  @if (plugin) {
    <div class="row form">
      <span><!-- Title --></span>
      @if (plugin.config?.mod) {
        <h2>{{ plugin.config?.mod }}</h2>
      } @else {
        <h2 i18n>{{ plugin.name || plugin.tag }} Settings</h2>
      }
      <span><!-- Description --></span>
      <p>{{ plugin.config?.description || '' }}</p>
 
      <span><!-- Buttons --></span>
      <span class="buttons right">
        @if (writeAccess) {
          @if (plugin.config?.hasDefaults) {
            <button type="button" (click)="loadDefaults()" i18n>��️ load defaults</button>
          }
          @if (plugin.config?.hasClearCache) {
            <button type="button" (click)="clearCache()">{{ plugin.config!.hasClearCache }}</button>
          }
        }
    </span>
    </div>
  }
  @if (query.error?.status !== 403) {
    <app-ref-list #list [page]="query.page"></app-ref-list>
  } @else {
    <div class="error-403" i18n>Access Denied</div>
  }
</ng-container>