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

26.92% Statements 21/78
13.51% Branches 5/37
0% Functions 0/1
42.5% Lines 17/40

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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 5810x 40x 40x 10x   10x     40x 10x   40x     10x                       10x       10x       10x       10x           10x     10x     10x     10x        
<ng-container *mobxAutorun>
  @if (!store.account.signedIn) {
    @if (config.login) {
      <a [href]="config.loginLink" i18n>login</a>
      @if (config.signup) {
        <span i18n> or </span>
      }
    }
    @if (config.signup) {
      <a [href]="config.signup" i18n>sign up</a>
    }
    @if (config.login || config.signup) {
      <span> | </span>
    }
    <a routerLink="/settings" i18n>settings</a>
  } @else {
    @if (store.account.localTag) {
      <a class="author"
         [title]="fullUserTagAndRole"
         [routerLink]="['/tag', store.account.tag]">{{ store.account.ext?.name || shortUserTag }}</a>
      @if (admin.getTemplate('dm') || admin.inbox.length || (admin.getTemplate('user') && store.account.userTag)) {
        @if (admin.getTemplate('user') && store.account.userTag && store.account.notifications) {
          | {{ (store.account.notifications - store.account.alarmCount) || '' }}
          @if (store.hotkey) {
            <a class="fake-link inbox notification filter-toggle"
               (click)="account.clearNotifications()"
               i18n-title title="Clear Notifications">✉️</a>
          } @else {
            <a class="inbox notification"
               [class.filter-toggle]="store.hotkey"
               i18n-title title="Unread"
               routerLink="/inbox/unread">✉️</a>
          }
          @if (store.account.alarmCount) {
            <span i18n-title title="{{ store.account.alarmCount }} Alarms">🔔️</span>
          }
        } @else {
          | <a class="inbox"
               i18n-title title="Inbox"
               routerLink="/inbox">✉️</a>
        }
      }
      |
    }
    <a routerLink="/settings" i18n>settings</a>
    @if (store.view.modUpdates.size) {
      <a routerLink="/settings/setup"
         i18n-title title="Updates available in setup" i18n>🌟️</a>
    }
    @if (config.logout) {
      | <a [href]="config.logout" i18n>logout</a>
    }
    @if (config.support) {
      | <a routerLink="/submit/dm" [queryParams]="{ to: config.support }" i18n>help</a>
    }
  }
</ng-container>