mirror of
https://github.com/YunoHost-Apps/domoticz_ynh.git
synced 2024-09-03 18:26:17 +02:00
Fix Update message Patch
This commit is contained in:
parent
60ae281e05
commit
cc3518e80d
1 changed files with 12 additions and 13 deletions
|
@ -1,26 +1,25 @@
|
|||
--- a/www/index.html 2023-02-26 22:22:14.971932399 +0100
|
||||
+++ b/www/index.html 2023-02-26 22:27:12.926431427 +0100
|
||||
@@ -170,14 +170,15 @@
|
||||
--- a/www/index.html 2024-01-24 12:00:41.000000000 +0100
|
||||
+++ b/www/index.html 2024-01-26 00:56:22.766868427 +0100
|
||||
@@ -154,13 +154,14 @@
|
||||
}
|
||||
|
||||
function ShowUpdateNotification(Revision, SystemName, DownloadURL) {
|
||||
- var msgtxt=$.t('A new version of Domoticz is Available!...');
|
||||
+ <!--var msgtxt=$.t('A new version of Domoticz is Available!...');-->
|
||||
+ var msgtxt=$.t('A new version of Domoticz is Available, please wait for the Yunohost Package!...');
|
||||
+ var msgtxt=$.t('A new version of Domoticz is Available, please wait for the YunoHost Package!...');
|
||||
msgtxt+='<br>' + $.t('Version') + ': <b>' + Revision + '</b>, ' + $.t('Latest Changes') + ': <b><a class="norm-link" onclick="ShowLatestHistory();">' + $.t('Click Here') + '</a></b>';
|
||||
- if (SystemName=="windows") {
|
||||
+ <!--if (SystemName=="windows") {
|
||||
msgtxt+='<br><center><a class="btn btn-danger" onclick="WindowsDownloadURL(\'' + DownloadURL + '\')">' + $.t('Update Now') + '</a></center>';
|
||||
if (SystemName=="windows") {
|
||||
- msgtxt+='<br><center><a class="btn btn-danger" onclick="WindowsDownloadURL(\'' + DownloadURL + '\')">' + $.t('Update Now') + '</a></center>';
|
||||
+<!-- msgtxt+='<br><center><a class="btn btn-danger" onclick="WindowsDownloadURL(\'' + DownloadURL + '\')">' + $.t('Update Now') + '</a></center>';-->
|
||||
}
|
||||
else {
|
||||
msgtxt+='<br><center><a class="btn btn-danger" onclick="SwitchLayout(\'Update\');">' + $.t('Update Now') + '</a></center>';
|
||||
- }
|
||||
+ }-->
|
||||
- msgtxt+='<br><center><a class="btn btn-danger" onclick="SwitchLayout(\'Update\');">' + $.t('Update Now') + '</a></center>';
|
||||
+<!-- msgtxt+='<br><center><a class="btn btn-danger" onclick="SwitchLayout(\'Update\');">' + $.t('Update Now') + '</a></center>';-->
|
||||
}
|
||||
generate_noty('success', msgtxt, false);
|
||||
}
|
||||
|
||||
@@ -1330,8 +1331,8 @@
|
||||
<li ng-class="{'current_page_item':getClass('/Devices')}" id="mDevices"><a id="cDevices" href="#Devices"><img src="images/devices.png"> <span data-i18n="Devices">Devices</span></a></li>
|
||||
@@ -1264,8 +1265,8 @@
|
||||
<li ng-class="{'current_page_item':getClass('/Users')}" id="mUsers"><a id="cUsers" href="#Users"><img src="images/users.png"> <span data-i18n="Users">Users</span></a></li>
|
||||
<li ng-class="{'current_page_item':getClass('/Setup')}" id="mSetup"><a id="cSetup" href="#Setup"><img src="images/setup.png"> <span data-i18n="Settings">Settings</span></a></li>
|
||||
<li id="dUpdate" class="divider"></li>
|
||||
- <li ng-show="config.HaveUpdate && config.UseUpdate"><a href="#Update"><img src="images/update.png"> <span data-i18n="Update Domoticz">Update Domoticz</span></a></li>
|
Loading…
Reference in a new issue