mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-17 21:01:53 +02:00
Add notification center button and fix stat-card/activity board loading
This commit is contained in:
15
static/websiteFunctions/docker-init.js
Normal file
15
static/websiteFunctions/docker-init.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// Wait for Angular to be ready
|
||||
angular.element(document).ready(function() {
|
||||
// Ensure the CyberCP module exists
|
||||
if (typeof angular.module('CyberCP') === 'undefined') {
|
||||
console.error('CyberCP module not found!');
|
||||
return;
|
||||
}
|
||||
|
||||
// Bootstrap Angular manually if needed
|
||||
var element = document.querySelector('[ng-controller="ListDockersitecontainer"]');
|
||||
if (element && !angular.element(element).data('$scope')) {
|
||||
console.log('Manually bootstrapping Angular for Docker container page');
|
||||
angular.bootstrap(element, ['CyberCP']);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user