Browse Source

fixed home commerce buttons

bach 2 years ago
parent
commit
8c8fa6c2b9

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.css


BIN
web/themes/custom/materiotheme/assets/dist/main.css.gz


File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.js


BIN
web/themes/custom/materiotheme/assets/dist/main.js.gz


File diff suppressed because it is too large
+ 1 - 1
web/themes/custom/materiotheme/assets/dist/report.html


+ 6 - 5
web/themes/custom/materiotheme/assets/styles/main.scss

@@ -738,6 +738,12 @@ aside.messages{
 //   }
 // }
 
+#main-content.loading{
+  transition: all 0.3s ease-in-out;
+  opacity: 0.5;
+  pointer-events: none;
+}
+
 
 //   ___         _           _       _         __ _
 //  / __|___ _ _| |_ ___ _ _| |_ ___| |   ___ / _| |_
@@ -2232,11 +2238,6 @@ article.card{
   display: flex;
   flex-flow: row nowrap;
 
-  &.loading{
-    transition: all 0.3s ease-in-out;
-    opacity: 0.5;
-  }
-
   article.product,
   .views-row{
     flex:0 0 33%;

+ 2 - 1
web/themes/custom/materiotheme/vuejs/components/productsMixins.js

@@ -111,7 +111,7 @@ export default {
 
       // transition
       this.$modal.hide('modal-loginregister')
-      document.getElementById('pricing').classList.add('loading')
+      document.getElementById('main-content').classList.add('loading')
 
       // handle the cart then redirect to checkout flow
       this.getCarts()
@@ -136,6 +136,7 @@ export default {
                 })
                 .catch((error) => {
                   console.warn('Issue with product add to cart', error)
+                  document.getElementById('main-content').classList.remove('loading')
                   Promise.reject(error)
                 })
             })

Some files were not shown because too many files changed in this diff