diff options
author | brantje <brantje@gmail.com> | 2017-08-11 23:24:23 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2017-08-11 23:34:36 +0300 |
commit | 4d317ee598d6375711a1035d9b90497a449473bf (patch) | |
tree | 991c5e30a9ce14e9f91fbfc74af7eeafadc29fee /html | |
parent | a54b0b576c9f1899de8f680d4cdb1ddd8890d7fa (diff) |
Add https / http check to setup page
Diffstat (limited to 'html')
-rw-r--r-- | html/browser_action/views/account/add.html | 2 | ||||
-rw-r--r-- | html/browser_action/views/setup.html | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/html/browser_action/views/account/add.html b/html/browser_action/views/account/add.html index 79d7438..f5bc85d 100644 --- a/html/browser_action/views/account/add.html +++ b/html/browser_action/views/account/add.html @@ -7,7 +7,7 @@ <span class="highlight"></span> <span class="bar"></span> <label>{{'server_url' | translate}}</label> - <div class="text-danger" ng-if="settings.nextcloud_host.substr(0,5) == 'http:'" style="margin-top: 5px;">{{ 'http_warning' | translate}}</div> + <div class="text-danger" ng-if="isHTTP(settings.nextcloud_host)" style="margin-top: 5px;">{{ 'http_warning' | translate}}</div> </div> <div class="group"> <input type="text" ng-model="settings.nextcloud_username" diff --git a/html/browser_action/views/setup.html b/html/browser_action/views/setup.html index 266965a..c763c21 100644 --- a/html/browser_action/views/setup.html +++ b/html/browser_action/views/setup.html @@ -18,11 +18,12 @@ <step class="step2" name="server"> <h3>{{'nextcloud_settings' | translate}}</h3> <div class="group"> - <input type="text" ng-model="settings.nextcloud_host" + <input type="text" ng-model="settings.nextcloud_host" ng-blur="checkHost()" required> <span class="highlight"></span> <span class="bar"></span> <label>{{'server_url' | translate}}</label> + <div class="text-danger" ng-if="isHTTP(settings.nextcloud_host)" style="margin-top: 5px;">{{ 'http_warning' | translate}}</div> </div> <div class="group"> <input type="text" ng-model="settings.nextcloud_username" |