diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-03 20:03:52 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-03 20:03:52 +0200 |
commit | 2948596bbaa13ec09aa7f8ca27d7a73d327ae5f1 (patch) | |
tree | bac8be91ce3472fcf2d415d1d03c5ccfb4af64bb /templates/contactImport.html | |
parent | 507f2f5d896cd23c3d20f2973eae3b9a02ad2777 (diff) |
Fix import
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'templates/contactImport.html')
-rw-r--r-- | templates/contactImport.html | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/templates/contactImport.html b/templates/contactImport.html index c4bfcb1a..4c24a3b8 100644 --- a/templates/contactImport.html +++ b/templates/contactImport.html @@ -1,10 +1,9 @@ -<span ng-if="!(ctrl.addressBooks.length===1 && ctrl.addressBooks[0].readOnly)"> - <input type="file" id="contact-import" class="hidden-visually" multiple /> - <label for="contact-import" class="button {{ctrl.loadingClass}}" ng-class="{'no-select': ctrl.addressBooks.length === 1}" id="upload"> - {{ctrl.importText}} - <span ng-if="ctrl.addressBooks.length === 1 && !ctrl.importing" ng-class="{'icon-loading-small': ctrl.loading}">{{ctrl.selectedAddressBook.displayName}}</span> - </label> -</span> +<input type="file" id="contact-import" class="hidden-visually" multiple /> +<label for="contact-import" class="button {{ctrl.loadingClass}}" ng-class="{'no-select': ctrl.addressBooks.length === 1}" id="upload" + ng-if="!(ctrl.addressBooks.length===1 && ctrl.addressBooks[0].readOnly)"> + {{ctrl.importText}} + <span ng-if="ctrl.addressBooks.length === 1 && !ctrl.importing" ng-class="{'icon-loading-small': ctrl.loading}">{{ctrl.selectedAddressBook.displayName}}</span> +</label> <ui-select ng-model="ctrl.selectedAddressBook" ng-if="ctrl.addressBooks.length > 1" search-enabled="ctrl.addressBooks.length > 4" theme="select2" class="form-control" title="{{ctrl.t.selectAddressbook}}" uis-open-close="ctrl.stopHideMenu(isOpen)" ng-class="{'icon-loading-small': ctrl.loading}"> |