Browse Source

[Filemanager] Disable change password modal window and add 'Back to Hestia' link

Robert Zollner 5 years ago
parent
commit
a418b844d1
1 changed files with 14 additions and 0 deletions
  1. 14 0
      install/deb/filemanager/filegator/configuration.php

+ 14 - 0
install/deb/filemanager/filegator/configuration.php

@@ -40,5 +40,19 @@ $dist_config['services']['Filegator\Services\View\ViewInterface']['config'] = [
         'add_to_body' => '',
 ];
 
+$dist_config['services']['Filegator\Services\View\ViewInterface']['config'] = [
+    'add_to_head' => '',
+    'add_to_body' => '
+<script>
+    var checkVueLoaded = setInterval(function() {
+        if (document.getElementsByClassName("navbar-item").length) {
+            clearInterval(checkVueLoaded);
+            var navProfile = document.getElementsByClassName("navbar-item profile")[0]; navProfile.replaceWith(navProfile.cloneNode(true))
+            document.getElementsByClassName("navbar-item logout")[0].text="Back to Hestia";
+        }
+    }, 200);
+</script>',
+];
+
 
 return $dist_config;