mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
Revert "Server/license Info: fix info when no license"
This reverts commit 36c277aaf1.
This commit is contained in:
@ -129,17 +129,17 @@
|
||||
<table width="672px">
|
||||
<tr>
|
||||
<td class="td-caption">Build</td>
|
||||
<td class="td-caption license">License</td>
|
||||
<td class="td-caption">License</td>
|
||||
<td class="td-caption" id="limit-type">Connections limit</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-separator"><div class="separator"></div></td>
|
||||
<td class="td-separator license"><div class="separator"></div></td>
|
||||
<td class="td-separator"><div class="separator"></div></td>
|
||||
<td class="td-separator"><div class="separator"></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="build-type">Type:</td>
|
||||
<td class="license"><span id="lic-valid-type">Valid: </span><span id="lic-valid"></span></td>
|
||||
<td><span id="lic-valid-type">Valid: </span><span id="lic-valid"></span></td>
|
||||
<td rowspan="3" id="lic-limit" class="td-value"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -236,21 +236,14 @@
|
||||
elem = document.getElementById('lic-limit');
|
||||
elem.innerText = (licenseInfo.usersCount || licenseInfo.connections);
|
||||
|
||||
if (licenseInfo.endDate===null) {
|
||||
var nodes = document.querySelectorAll('td.license');
|
||||
nodes && nodes.forEach(function(item){
|
||||
item && item.remove();
|
||||
});
|
||||
} else {
|
||||
elem = document.getElementById('lic-valid-type');
|
||||
elem.innerText = (licenseInfo.mode == 1) ? 'Valid: ' : 'Updates available: ';
|
||||
elem = document.getElementById('lic-valid-type');
|
||||
elem.innerText = (licenseInfo.mode == 1) ? 'Valid: ' : 'Updates available: ';
|
||||
|
||||
var licdate = new Date(licenseInfo.endDate);
|
||||
elem = document.getElementById('lic-valid');
|
||||
elem.innerText = licdate.toLocaleDateString();
|
||||
if (Date.now() > licdate)
|
||||
elem.classList.add('critical');
|
||||
}
|
||||
var licdate = new Date(licenseInfo.endDate);
|
||||
elem = document.getElementById('lic-valid');
|
||||
elem.innerText = licdate.toLocaleDateString();
|
||||
if (Date.now() > licdate)
|
||||
elem.classList.add('critical');
|
||||
|
||||
return (licenseInfo.usersCount>0) ? 1000000 : licenseInfo.connections;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user