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

70.37% Statements 19/27
64.28% Branches 9/14
0% Functions 0/1
75% Lines 12/16

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 291x 1x 3x         3x 1x 1x     3x   3x         1x 1x 3x     3x        
<ng-container *mobxAutorun>
  <form class="form"
        [formGroup]="editForm"
        (ngSubmit)="save()"
        [appLimitWidth]="form?.fillPopover?.nativeElement || form?.fillSidebar?.nativeElement"
        [limitSibling]="true">
 
    @if (store.local.selectedUserTag || config.electron || isDevMode() || store.account.localTag === '+user' || store.account.localTag === '_user') {
      <label for="change-user" i18n>Change User:</label>
      <app-user-tag-selector id="change-user"></app-user-tag-selector>
      <hr><hr>
    }
    <app-ext-form #form [group]="editForm"></app-ext-form>
 
    @for (e of serverError; track e) {
      <span><!-- Unexpected Error --></span>
      <div class="error">{{ e }}</div>
    }
 
    <span><!-- Buttons --></span>
    <span class="buttons right">
      @if (editing) {
        <app-loading [inline]="true"></app-loading>
      }
      <button type="submit" [disabled]="editing || submitted && !editForm.valid" i18n>Save</button>
    </span>
  </form>
</ng-container>