1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 13:37:40 +02:00

Merge pull request #19 from litti/master

Remove the RaspberryMatic specific firmware-section if the rmupdate addon is installed on a CCU3
This commit is contained in:
j-a-n 2019-01-12 16:15:50 +01:00 committed by GitHub
commit 33881db100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.idea

View File

@ -281,7 +281,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
latest_firmware = fw.version;
latest_firmware_supported = fw.supported;
}
if (fw.installed) current_firmware = fw.version;
if (fw.installed) {
current_firmware = fw.version;
if (current_firmware.length <= 8) {
//ccu3 and not raspberrymatic because of short version string
$('#firmware_header').hide();
$('#firmware_summary').hide();
$('#firmware_list').hide();
}
}
var color = 'yellow';
if (fw.latest) color = 'green';
if (fw.installed) color = 'gray';
@ -1019,15 +1027,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</table>
</div>
<h2 class="ui header">
<h2 id="firmware_header" class="ui header">
<i class="settings icon"></i>
<div data-i18n="firmwares" class="content">
</div>
</h2>
<div class="ui list" id="firmware-summary">
<div id="firmware_summary" class="ui list" id="firmware-summary">
</div>
<div class="dimmable">
<div id="firmware_list" class="dimmable">
<div id="dimmer-firmware-info" class="ui active inverted dimmer">
<div class="ui loader" data-i18n="loading"></div>
</div>