diff --git a/CHANGELOG.md b/CHANGELOG.md
index 558557d7..aa901edb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
+## [2.7.0 - 2024-07-0x]
+
+### Fixed
+
+- Nextcloud URL state warning in the Register daemon form for HTTPS configuration. #312
+
## [2.6.0 - 2024-05-10]
### Added
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 89aac71b..9516202c 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -43,7 +43,7 @@ to join us in shaping a more versatile, stable, and secure app landscape.
*Your insights, suggestions, and contributions are invaluable to us.*
]]>
- 2.6.0
+ 2.7.0
agpl
Andrey Borysenko
Alexander Piskun
diff --git a/src/components/DaemonConfig/RegisterDaemonConfigModal.vue b/src/components/DaemonConfig/RegisterDaemonConfigModal.vue
index 211735ba..6aeaf214 100644
--- a/src/components/DaemonConfig/RegisterDaemonConfigModal.vue
+++ b/src/components/DaemonConfig/RegisterDaemonConfigModal.vue
@@ -57,7 +57,10 @@
@@ -356,6 +359,15 @@ export default {
isAdditionalOptionValid() {
return this.additionalOption.key.trim() !== '' && this.additionalOption.value.trim() !== ''
},
+ isNextcloudUrlSafe() {
+ if (this.httpsEnabled) {
+ return this.nextcloud_url.startsWith('https://')
+ }
+ return this.nextcloud_url.startsWith('http://') || this.nextcloud_url.startsWith('https://')
+ },
+ isNextcloudUrlSafeHelpText() {
+ return this.isNextcloudUrlSafe ? '' : t('app_api', 'For HTTPS daemon, Nextcloud URL should be HTTPS')
+ },
},
watch: {
configurationTab(newConfigurationTab) {
@@ -542,3 +554,12 @@ export default {
}
}
+
+