mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 17:22:58 +01:00
🚑 Fix ssl setting not working #16
This commit is contained in:
parent
7fa1df0fcc
commit
488e04c8b3
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Nextcloud Backup",
|
"name": "Nextcloud Backup",
|
||||||
"version": "0.7.5",
|
"version": "0.7.6",
|
||||||
"slug": "nextcloud_backup",
|
"slug": "nextcloud_backup",
|
||||||
"description": "Hass.io snapshot backup to Nextcloud",
|
"description": "Hass.io snapshot backup to Nextcloud",
|
||||||
"url": "https://github.com/Sebclem/hassio-nextcloud-backup",
|
"url": "https://github.com/Sebclem/hassio-nextcloud-backup",
|
||||||
|
@ -25,7 +25,7 @@ class WebdavTools {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let status = statusTools.getStatus();
|
let status = statusTools.getStatus();
|
||||||
logger.info("Initilizing and checking webdav client...");
|
logger.info("Initilizing and checking webdav client...");
|
||||||
this.baseUrl = (ssl ? "https" : "http") + "://" + host + endpoint;
|
this.baseUrl = (ssl == true ? "https" : "http") + "://" + host + endpoint;
|
||||||
this.username = username;
|
this.username = username;
|
||||||
this.password = password;
|
this.password = password;
|
||||||
try {
|
try {
|
||||||
|
@ -666,7 +666,7 @@
|
|||||||
function getNextcloudSettings() {
|
function getNextcloudSettings() {
|
||||||
loadingModal.open();
|
loadingModal.open();
|
||||||
$.get('./api/nextcloud-settings', (data) => {
|
$.get('./api/nextcloud-settings', (data) => {
|
||||||
$('#ssl').prop('checked', ssl);
|
$('#ssl').prop("checked", data.ssl == "true");
|
||||||
$('#hostname').val(data.host);
|
$('#hostname').val(data.host);
|
||||||
$('#hostname + label').removeClass("active");
|
$('#hostname + label').removeClass("active");
|
||||||
$('#hostname + label').addClass("active");
|
$('#hostname + label').addClass("active");
|
||||||
|
Loading…
Reference in New Issue
Block a user