mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 01:32:18 +02:00
Don't show backup in list_capacity for dummy plugin or if backup_framework is disabled (#11485)
* Don't show backup storage in list_capacity for dummy plugin or if backup_framework is disabled * Fix the tile to full size --------- Co-authored-by: Harikrishna Patnala <harikrishna.patnala@gmail.com>
This commit is contained in:
parent
66a584624f
commit
3d6ec29c9b
@ -191,7 +191,7 @@ public class DummyBackupProvider extends AdapterBase implements BackupProvider {
|
||||
|
||||
@Override
|
||||
public Pair<Long, Long> getBackupStorageStats(Long zoneId) {
|
||||
return new Pair<>(8L * 1024 * 1024 * 1024, 10L * 1024 * 1024 * 1024);
|
||||
return new Pair<>(0L, 0L);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -2161,6 +2161,9 @@ public class BackupManagerImpl extends ManagerBase implements BackupManager {
|
||||
|
||||
@Override
|
||||
public CapacityVO getBackupStorageUsedStats(Long zoneId) {
|
||||
if (isDisabled(zoneId)) {
|
||||
return new CapacityVO(null, zoneId, null, null, 0L, 0L, Capacity.CAPACITY_TYPE_BACKUP_STORAGE);
|
||||
}
|
||||
final BackupProvider backupProvider = getBackupProvider(zoneId);
|
||||
Pair<Long, Long> backupUsage = backupProvider.getBackupStorageStats(zoneId);
|
||||
return new CapacityVO(null, zoneId, null, null, backupUsage.first(), backupUsage.second(), Capacity.CAPACITY_TYPE_BACKUP_STORAGE);
|
||||
|
||||
@ -673,6 +673,7 @@ export default {
|
||||
|
||||
.dashboard-storage {
|
||||
width: 100%;
|
||||
min-height: 370px;
|
||||
overflow-x:hidden;
|
||||
overflow-y: scroll;
|
||||
max-height: 370px;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user