diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-10-28 17:36:51 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-11-21 15:55:04 +0100 |
commit | 2e7c08420e11c0cbd2991c6ec6a15953bc36cd21 (patch) | |
tree | ea7287315d0d2daa7d15b9954c608ffdd10f1342 | |
parent | 3798345fc5b478166f88f96583ce290f35d67c90 (diff) |
Removed unwanted files
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r-- | js/models/addressBook_model.js.orig | 72 | ||||
-rw-r--r-- | templates/contactList.html.orig | 18 |
2 files changed, 0 insertions, 90 deletions
diff --git a/js/models/addressBook_model.js.orig b/js/models/addressBook_model.js.orig deleted file mode 100644 index 9a86c62a..00000000 --- a/js/models/addressBook_model.js.orig +++ /dev/null @@ -1,72 +0,0 @@ -angular.module('contactsApp') -.factory('AddressBook', function() -{ - return function AddressBook(data) { - var storageKey = btoa(data.data.href.split('/').splice(-3, 2).join('_')); - angular.extend(this, { - - displayName: '', - contacts: [], - groups: data.data.props.groups, - readOnly: data.data.props.readOnly === '1', -<<<<<<< HEAD - // use only owner and url, convert ''/remote.php/dav/addressbooks/users/admin/Test1/'' to 'admin.Test' - key: data.data.href.split('/').splice(-3, 2).join('_'), - enabled: window.localStorage.getItem('contacts_ab_'+this.key) !== false, -======= - // use only owner and url, convert '/remote.php/dav/addressbooks/users/admin/Test1/' to 'admin.Test' - key: storageKey, - enabled: window.localStorage.getItem('contacts_ab_'+storageKey) !== 'false', // localstorage stores everything as string - - getContact: function(uid) { - for(var i in this.contacts) { - if(this.contacts[i].uid() === uid) { - return this.contacts[i]; - } - } - return undefined; - }, ->>>>>>> Ignore disabled ab on load - - sharedWith: { - users: [], - groups: [] - } - - }); - angular.extend(this, data); - angular.extend(this, { - owner: data.data.props.owner.split('/').slice(-2, -1)[0] - }); - - var shares = this.data.props.invite; - if (typeof shares !== 'undefined') { - for (var j = 0; j < shares.length; j++) { - var href = shares[j].href; - if (href.length === 0) { - continue; - } - var access = shares[j].access; - if (access.length === 0) { - continue; - } - - var readWrite = (typeof access.readWrite !== 'undefined'); - - if (href.startsWith('principal:principals/users/')) { - this.sharedWith.users.push({ - id: href.substr(27), - displayname: href.substr(27), - writable: readWrite - }); - } else if (href.startsWith('principal:principals/groups/')) { - this.sharedWith.groups.push({ - id: href.substr(28), - displayname: href.substr(28), - writable: readWrite - }); - } - } - } - }; -}); diff --git a/templates/contactList.html.orig b/templates/contactList.html.orig deleted file mode 100644 index f9b4d00d..00000000 --- a/templates/contactList.html.orig +++ /dev/null @@ -1,18 +0,0 @@ -<div class="contacts-list" ng-class="{loading: ctrl.loading, 'mobile-show': ctrl.show}"> - <div class="app-content-list-item" -<<<<<<< HEAD - ng-repeat="contact in ctrl.filteredContacts = (ctrl.contactList | contactGroupFilter:ctrl.routeParams.gid | localeOrderBy:ctrl.sortBy | filter:query | limitTo:ctrl.limitTo ) as filtered track by contact.uid()" -======= - ng-repeat="contact in ctrl.filteredContacts = (ctrl.contactList | filter:{'data':{'addressBook':{'enabled': true}}} | contactGroupFilter:ctrl.routeParams.gid | localeOrderBy:ctrl.sortBy | filter:query | limitTo:ctrl.limitTo) as filtered track by contact.uid()" ->>>>>>> Filter out disabled ab - contact data="contact" - ng-click="setSelected(contact.uid())" - ng-class="{active: contact.uid() === ctrl.getSelectedId()}"> - </div> - <div ng-show="!ctrl.filteredContacts.length && !ctrl.loading && ctrl.searchTerm !== ''"> - <div id="emptycontent" class="emptycontent-search"> - <div class="icon-search"></div> - <h2>{{ctrl.t.emptySearch}}</h2> - </div> - </div> -</div> |