From e5ffbd9105a692bdb06c0e5f9aa80028a9466b94 Mon Sep 17 00:00:00 2001
From: Benoit Lavenier <benoit.lavenier@e-is.pro>
Date: Fri, 26 Mar 2021 12:20:18 +0100
Subject: [PATCH] [fix] Message: Fix motion when ui effects disabled

---
 www/plugins/es/templates/common/edit_socials.html            | 2 +-
 www/plugins/es/templates/common/modal_location.html          | 3 ++-
 www/plugins/es/templates/group/edit_group.html               | 2 +-
 www/plugins/es/templates/group/list.html                     | 2 +-
 www/plugins/es/templates/group/lookup_form.html              | 4 ++--
 www/plugins/es/templates/invitation/list_invitation.html     | 2 +-
 www/plugins/es/templates/message/list.html                   | 2 +-
 www/plugins/es/templates/message/view_message.html           | 2 +-
 www/plugins/es/templates/network/view_es_peer.html           | 3 ++-
 www/plugins/es/templates/notification/list_notification.html | 2 +-
 www/plugins/es/templates/registry/edit_record.html           | 2 +-
 www/plugins/es/templates/registry/lookup_list.html           | 4 ++--
 www/plugins/es/templates/registry/lookup_list_lg.html        | 4 ++--
 www/plugins/es/templates/registry/view_record.html           | 2 +-
 .../es/templates/subscription/edit_subscriptions.html        | 2 +-
 www/plugins/es/templates/user/edit_profile.html              | 5 +++--
 16 files changed, 23 insertions(+), 20 deletions(-)

diff --git a/www/plugins/es/templates/common/edit_socials.html b/www/plugins/es/templates/common/edit_socials.html
index bed22c7da..78bdc7458 100644
--- a/www/plugins/es/templates/common/edit_socials.html
+++ b/www/plugins/es/templates/common/edit_socials.html
@@ -1,4 +1,4 @@
-<div class="list no-padding {{::motion.ionListClass}}">
+<div class="list no-padding" ng-class="::motion.ionListClass">
   <!-- divider -->
   <div class="item item-divider">
 
diff --git a/www/plugins/es/templates/common/modal_location.html b/www/plugins/es/templates/common/modal_location.html
index 98bb4a174..732ee57de 100644
--- a/www/plugins/es/templates/common/modal_location.html
+++ b/www/plugins/es/templates/common/modal_location.html
@@ -48,7 +48,8 @@
     </div>
 
     <ion-list ng-if="!search.loading"
-              class="padding-top {{::motion.ionListClass}}">
+              class="padding-top"
+              ng-class="::motion.ionListClass">
       <div ng-repeat="res in search.results"
          class="item item-border-large  item-text-wrap  ink"
          ng-class="::{'item-divider': !res.address, 'item-icon-left item-icon-right': res.address}"
diff --git a/www/plugins/es/templates/group/edit_group.html b/www/plugins/es/templates/group/edit_group.html
index 50f218a8a..18c01d468 100644
--- a/www/plugins/es/templates/group/edit_group.html
+++ b/www/plugins/es/templates/group/edit_group.html
@@ -26,7 +26,7 @@
 
             <!--  -->
             <div class="list"
-                 ng-class="motion.ionListClass"
+                 ng-class="::motion.ionListClass"
                  ng-init="setForm(recordForm)">
 
               <div class="item hidden-xs">
diff --git a/www/plugins/es/templates/group/list.html b/www/plugins/es/templates/group/list.html
index 95e49b6a9..4a6981190 100644
--- a/www/plugins/es/templates/group/list.html
+++ b/www/plugins/es/templates/group/list.html
@@ -1,4 +1,4 @@
-<ion-list class="{{::motion.ionListClass}}">
+<ion-list ng-class="::motion.ionListClass">
 
   <ion-item
     ng-repeat="notification in search.results"
diff --git a/www/plugins/es/templates/group/lookup_form.html b/www/plugins/es/templates/group/lookup_form.html
index 889b7216f..86afba480 100644
--- a/www/plugins/es/templates/group/lookup_form.html
+++ b/www/plugins/es/templates/group/lookup_form.html
@@ -71,8 +71,8 @@
     </div>
   </div>
 
-  <div class="list {{::motion.ionListClass}}" ng-if="!$scope.search.loading">
-
+  <div ng-if="!$scope.search.loading"
+       class="list" ng-class="::motion.ionListClass">
     <ng-include src="::'plugins/es/templates/group/items_groups.html'"></ng-include>
 
   </div>
diff --git a/www/plugins/es/templates/invitation/list_invitation.html b/www/plugins/es/templates/invitation/list_invitation.html
index 098d27a81..75803256f 100644
--- a/www/plugins/es/templates/invitation/list_invitation.html
+++ b/www/plugins/es/templates/invitation/list_invitation.html
@@ -1,4 +1,4 @@
-<ion-list class="{{::motion.ionListClass}}">
+<ion-list ng-class="::motion.ionListClass">
 
   <ion-item
     ng-repeat="invitation in search.results"
diff --git a/www/plugins/es/templates/message/list.html b/www/plugins/es/templates/message/list.html
index c564a6e49..33e4c58fe 100644
--- a/www/plugins/es/templates/message/list.html
+++ b/www/plugins/es/templates/message/list.html
@@ -3,7 +3,7 @@
   <span ng-if="search.type=='text'" translate>COMMON.SEARCH_NO_RESULT</span>
 </div>
 
-<ion-list class="{{::motion.ionListClass}}"
+<ion-list ng-class="::motion.ionListClass"
           can-swipe="$root.device.enable">
 
   <ion-item
diff --git a/www/plugins/es/templates/message/view_message.html b/www/plugins/es/templates/message/view_message.html
index 3ce1f164e..1c37f7871 100644
--- a/www/plugins/es/templates/message/view_message.html
+++ b/www/plugins/es/templates/message/view_message.html
@@ -21,7 +21,7 @@
           <ion-spinner icon="android"></ion-spinner>
         </div>
 
-        <div class="list animate-fade-slide-in item-text-wrap">
+        <div class="list item-text-wrap" ng-class="::motion.ionListClass">
 
           <!-- Buttons bar-->
           <div class="item large-button-bar hidden-xs hidden-sm">
diff --git a/www/plugins/es/templates/network/view_es_peer.html b/www/plugins/es/templates/network/view_es_peer.html
index 063954fb7..9593d2f18 100644
--- a/www/plugins/es/templates/network/view_es_peer.html
+++ b/www/plugins/es/templates/network/view_es_peer.html
@@ -119,7 +119,8 @@
             <ion-spinner class="icon" icon="android"></ion-spinner>
         </div>
 
-        <div class="list no-padding {{::motion.ionListClass}}" ng-if="isReachable">
+        <div ng-if="isReachable"
+             class="list no-padding" ng-class="::motion.ionListClass">
 
           <div ng-repeat="peer in :rebind:peers track by peer.id"
                class="item item-peer item-icon-left ink"
diff --git a/www/plugins/es/templates/notification/list_notification.html b/www/plugins/es/templates/notification/list_notification.html
index 6b9851555..0ee96bf67 100644
--- a/www/plugins/es/templates/notification/list_notification.html
+++ b/www/plugins/es/templates/notification/list_notification.html
@@ -1,4 +1,4 @@
-<ion-list class="{{::motion.ionListClass}}">
+<ion-list ng-class="::motion.ionListClass">
 
   <ion-item
     ng-repeat="notification in search.results track by notification.id"
diff --git a/www/plugins/es/templates/registry/edit_record.html b/www/plugins/es/templates/registry/edit_record.html
index 565a813c9..44a3cb491 100644
--- a/www/plugins/es/templates/registry/edit_record.html
+++ b/www/plugins/es/templates/registry/edit_record.html
@@ -48,7 +48,7 @@
         <div class="col no-padding-xs no-padding-sm">
 
           <form name="recordForm" novalidate="" ng-submit="save()">
-            <div class="list {{::motion.ionListClass}}"
+            <div class="list" ng-class="::motion.ionListClass"
                  ng-init="setForm(recordForm)">
               <div class="item" ng-if="id">
                 <h4 class="gray">
diff --git a/www/plugins/es/templates/registry/lookup_list.html b/www/plugins/es/templates/registry/lookup_list.html
index 5b98cb48e..9618ed363 100644
--- a/www/plugins/es/templates/registry/lookup_list.html
+++ b/www/plugins/es/templates/registry/lookup_list.html
@@ -1,6 +1,6 @@
 
-<ion-list class="{{::motion.ionListClass}}"
-          ng-if="!search.loading && search.results">
+<ion-list ng-if="!search.loading && search.results"
+          ng-class="::motion.ionListClass">
 
   <div class="item item-avatar item-icon-right item-border-large ink"
        ng-repeat="item in search.results"
diff --git a/www/plugins/es/templates/registry/lookup_list_lg.html b/www/plugins/es/templates/registry/lookup_list_lg.html
index a98685446..e2105612f 100644
--- a/www/plugins/es/templates/registry/lookup_list_lg.html
+++ b/www/plugins/es/templates/registry/lookup_list_lg.html
@@ -1,7 +1,7 @@
 
 
-<div class="list {{::motion.ionListClass}}"
-          ng-if="!search.loading && search.results && search.results.length > 0">
+<div ng-if="!search.loading && search.results && search.results.length > 0"
+     class="list {{::motion.ionListClass}}" ng-class="::motion.ionListClass">
 
   <a ng-repeat="item in search.results"
      class="item item-record item-border-large ink padding-xs"
diff --git a/www/plugins/es/templates/registry/view_record.html b/www/plugins/es/templates/registry/view_record.html
index 1c2e95c59..9ee017221 100644
--- a/www/plugins/es/templates/registry/view_record.html
+++ b/www/plugins/es/templates/registry/view_record.html
@@ -51,7 +51,7 @@
       <div class="col col-20 hidden-xs hidden-sm">&nbsp;
       </div>
 
-      <div class="col list animate-fade-slide-in item-text-wrap no-padding-xs no-padding-sm">
+      <div class="col list item-text-wrap no-padding-xs no-padding-sm" ng-class="::motion.ionListClass">
 
         <div class="item">
           <h2 class="gray">
diff --git a/www/plugins/es/templates/subscription/edit_subscriptions.html b/www/plugins/es/templates/subscription/edit_subscriptions.html
index 5590006f7..db1565ecc 100644
--- a/www/plugins/es/templates/subscription/edit_subscriptions.html
+++ b/www/plugins/es/templates/subscription/edit_subscriptions.html
@@ -39,7 +39,7 @@
     <div class="row no-padding">
       <div class="col col-20 hidden-xs hidden-sm">&nbsp;</div>
 
-      <div class="col list {{::motion.ionListClass}} item-border-large">
+      <div class="col list item-border-large" ng-class="::motion.ionListClass">
 
         <!-- emails -->
         <ng-repeat ng-repeat="subscriptions in search.results | filter: { type: 'email' }"
diff --git a/www/plugins/es/templates/user/edit_profile.html b/www/plugins/es/templates/user/edit_profile.html
index 0efadbbab..a9a16ba60 100644
--- a/www/plugins/es/templates/user/edit_profile.html
+++ b/www/plugins/es/templates/user/edit_profile.html
@@ -64,7 +64,8 @@
 
         <form name="profileForm" novalidate="" ng-submit="saveAndClose()">
 
-          <div class="list item-text-wrap {{::motion.ionListClass}}" ng-init="setForm(profileForm)">
+          <div class="list item-text-wrap" ng-class="::motion.ionListClass"
+               ng-init="setForm(profileForm)">
 
             <!-- Public info -->
             <div class="item item-icon-left item-text-wrap">
@@ -118,7 +119,7 @@
           <!-- social networks -->
           <ng-include src="::'plugins/es/templates/common/edit_socials.html'" ng-controller="ESSocialsEditCtrl"></ng-include>
 
-          <div class="list item-text-wrap {{::motion.ionListClass}}">
+          <div class="list item-text-wrap" ng-class="::motion.ionListClass">
 
             <div class="item item-divider" translate>PROFILE.TECHNICAL_DIVIDER</div>
 
-- 
GitLab