mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 21:35:55 +01:00
install required components only
This commit is contained in:
27
static/baseTemplate/custom-js/system-status.js
Executable file → Normal file
27
static/baseTemplate/custom-js/system-status.js
Executable file → Normal file
@@ -182,6 +182,10 @@ app.controller('adminController', function($scope,$http,$timeout) {
|
||||
|
||||
// DNS Management
|
||||
|
||||
if(!Boolean(response.data.dnsAsWhole)){
|
||||
$('.dnsAsWhole').hide();
|
||||
}
|
||||
|
||||
if(!Boolean(response.data.createNameServer)){
|
||||
$('.createNameServer').hide();
|
||||
}
|
||||
@@ -200,6 +204,10 @@ app.controller('adminController', function($scope,$http,$timeout) {
|
||||
|
||||
// Email Management
|
||||
|
||||
if(!Boolean(response.data.emailAsWhole)){
|
||||
$('.emailAsWhole').hide();
|
||||
}
|
||||
|
||||
if(!Boolean(response.data.createEmail)){
|
||||
$('.createEmail').hide();
|
||||
}
|
||||
@@ -223,6 +231,10 @@ app.controller('adminController', function($scope,$http,$timeout) {
|
||||
|
||||
// FTP Management
|
||||
|
||||
if(!Boolean(response.data.ftpAsWhole)){
|
||||
$('.ftpAsWhole').hide();
|
||||
}
|
||||
|
||||
if(!Boolean(response.data.createFTPAccount)){
|
||||
$('.createFTPAccount').hide();
|
||||
}
|
||||
@@ -273,7 +285,20 @@ app.controller('adminController', function($scope,$http,$timeout) {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}else{
|
||||
|
||||
if(!Boolean(response.data.emailAsWhole)){
|
||||
$('.emailAsWhole').hide();
|
||||
}
|
||||
|
||||
if(!Boolean(response.data.ftpAsWhole)){
|
||||
$('.ftpAsWhole').hide();
|
||||
}
|
||||
|
||||
if(!Boolean(response.data.dnsAsWhole)){
|
||||
$('.dnsAsWhole').hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function cantLoadInitialData(response) {}
|
||||
|
||||
Reference in New Issue
Block a user