From 1f545e80b4db2aa371be48e3bce7de8f32d557d3 Mon Sep 17 00:00:00 2001
From: Chocobozzz <me@florianbigard.com>
Date: Wed, 28 Sep 2022 15:48:47 +0200
Subject: Hide all email block if we can't change it

---
 .../my-account-change-email/my-account-change-email.component.html      | 2 +-
 .../+my-account/my-account-settings/my-account-settings.component.html  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'client')

diff --git a/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html b/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html
index d85be846b..30ae9dd55 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html
@@ -5,7 +5,7 @@
   <strong>{{ user.pendingEmail }}</strong> is awaiting email verification
 </div>
 
-<form role="form" class="change-email" (ngSubmit)="changeEmail()" [formGroup]="form" *ngIf="user.pluginAuth === null">
+<form role="form" class="change-email" (ngSubmit)="changeEmail()" [formGroup]="form">
 
   <div class="form-group">
     <label i18n for="new-email">Change your email</label>
diff --git a/client/src/app/+my-account/my-account-settings/my-account-settings.component.html b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
index d9e833019..42a8d0856 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
@@ -62,7 +62,7 @@
   </div>
 </div>
 
-<div class="row mt-5"> <!-- email grid -->
+<div class="row mt-5" *ngIf="user.pluginAuth === null"> <!-- email grid -->
   <div class="col-12 col-lg-4 col-xl-3">
     <h2 i18n class="account-title">EMAIL</h2>
   </div>
-- 
cgit v1.2.3