Skip to content

Commit a418b84

Browse files
committed
[Filemanager] Disable change password modal window and add 'Back to Hestia' link
1 parent d594404 commit a418b84

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

install/deb/filemanager/filegator/configuration.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,19 @@
4040
'add_to_body' => '',
4141
];
4242

43+
$dist_config['services']['Filegator\Services\View\ViewInterface']['config'] = [
44+
'add_to_head' => '',
45+
'add_to_body' => '
46+
<script>
47+
var checkVueLoaded = setInterval(function() {
48+
if (document.getElementsByClassName("navbar-item").length) {
49+
clearInterval(checkVueLoaded);
50+
var navProfile = document.getElementsByClassName("navbar-item profile")[0]; navProfile.replaceWith(navProfile.cloneNode(true))
51+
document.getElementsByClassName("navbar-item logout")[0].text="Back to Hestia";
52+
}
53+
}, 200);
54+
</script>',
55+
];
56+
4357

4458
return $dist_config;

0 commit comments

Comments
 (0)