Bachir Soussi Chiadmi 4 years ago
parent
commit
6fb9824380

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


File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/edlptheme/assets/dist/styles/app.min.css


+ 5 - 1
web/themes/custom/edlptheme/assets/scripts/main.js

@@ -81,7 +81,7 @@
         pass : $('input#edit-pass[type="password"]', this).val()
       };
       // console.log(args);
-      logIn(args).then(getStudioLinkBlock);
+      logIn(args).then(logedin);
       return false;
     };
     function logIn(args){
@@ -110,6 +110,10 @@
         }
       });
     };
+    function logedin(){
+      $('body').addClass('user-logged-in');
+      getStudioLinkBlock();
+    };
     function getStudioLinkBlock(){
       var path = _origin+_base_url+'edlp/ajax/blocks/json/';
       $.getJSON(path+"studiolinkblock", {})

+ 5 - 0
web/themes/custom/edlptheme/assets/styles/app.scss

@@ -2421,6 +2421,11 @@ footer{
     margin-bottom: 1em;
     margin-left: 0.2em;
     @include iconlinkblock(url(../img/studio.svg), url(../img/studio-active.svg));
+    body.user-logged-in &{
+      a{
+        background-image: url(../img/studio-active.svg);
+      }
+    }
   }
 
   #block-userlogin,

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