Mailspring/app/internal_packages/contacts/lib/AddContactToolbar.tsx

79 lines
2.3 KiB
TypeScript
Raw Normal View History

Add a proper address book with CardDAV + Google People support commit 423cf4f4072961cad2035f0aa9c84f9ca1e22d27 Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 22:33:53 2019 -0500 Replace belcard with homegrown VCard parser because our needs are minimal and the linux binary has relocation issues commit 4ae19c0ed51f1d9f0c87886cccc3616b91ad571d Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 10:38:26 2019 -0500 Skip building a few more belr components, still looking for relocation error cause commit a7ec02a449e27ea7b1375e941c33444c5061047f Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 22:16:15 2019 -0500 Fix windows SRV record lookups for contact directory autodiscovery commit 318a31d2791b34b2c7b27c473e1d9ef844a74dd0 Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:50:06 2019 -0500 Leave vcard_grammar unpacked so mailsync can find it at runtime commit bf7e43e37d995bdd8a5061842600224436a8d465 Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:43:01 2019 -0500 Fix bug in icon case sensitivity commit c283513653fa75658dfe1ce698bd6fca2ca0aeba Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 17:29:24 2019 -0500 Renew Windows Authenticode code signing cert (there goes $500…) commit d13235f65b26b9de2aaf91f47aab46defe094319 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:25:34 2019 -0500 Bump mailsync to move belr dlls commit 00ca6431df1dd22e38e2c4b94f12bae24df7497f Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:22:53 2019 -0500 Bump to xcode9 to fix odd C++11 error commit 47903c99c4f111a7d16d30c60e166501b9b0aa90 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:01:32 2019 -0500 Bump mailsync to build belr as a dll instead of a static lib commit 21d645d4e7dd8acb8248b6cf2bdc8c5496dbe0bb Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 22:38:24 2019 -0500 Bump mailsync commit 3f943031cb3fff74f3602aa4fada102ae5a16b96 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:57:39 2019 -0500 Bump mailsync to fix windows libetpan failure commit 8fb55ca0fcd575580cb7e3724865ab2f94f4edd3 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:36:57 2019 -0500 Bump mailsync, add grammar commit b959c54e503e40c69cb8386c81f114c8e34ba8f7 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:20:13 2019 -0500 Bump mailsync for linux / win32 commit ddb5229d670918d34392e867b85512ab1e1ebfdf Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 22:44:12 2019 -0500 Bump mailsync commit f80e1bc422b844bc8ecc3c7501fe346f90779258 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:11:39 2019 -0500 Fix LESS linter failures commit 66dc60a731cedcebf8b7b7a1360bf3ed43153546 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:00:37 2019 -0500 Extend participant search to return / expand groups commit 3bded91307774db2f5fd05e54c6ed940d6bd2388 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 03:18:11 2019 -0500 Add comments, etc commit 4ede5446deaa7483f34343c81fa87a9e26af7919 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 02:38:50 2019 -0500 Google People API contacts CRUD alongside CardDav commit 96c6a64e46133e152853f849ca14dace548e8474 Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 14:00:34 2019 -0500 Build ContactBook concept to track which accounts have sync running commit 1f6aab108377db2b83730be91e0ea9211826b7ce Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 11:38:03 2019 -0500 Contact and contact group CRUD, address book menus commit b877c58d484c86afca44aaaa2238bae042b85aa3 Author: Ben Gotow <ben@foundry376.com> Date: Sun Oct 6 16:32:33 2019 -0500 Editing contact names working commit 761079304cff925c8ef09dc96ff0864da169fc69 Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:42:59 2019 -0500 Improved styling of YYYYMMDD field commit 71a567276b2f1d89e7837773191cc3956dc6459f Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:06:28 2019 -0500 UI for edit + move + delete contacts commit f1967dd60367d0126fea1f19ef5d576592cdab57 Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:44 2019 -0500 Allow you to turn on / off the “Found in Mail” autocompletions commit 0c2b0eb03b462ca160f2ac7ce8556d6e7473539a Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:14 2019 -0500 Improve contacts window launch perf by lazy loading composer support, scanning less of fs for themes commit 07abd6cb71430b2ac894baa449125645b028253a Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 04:36:10 2019 -0500 Support for CardDav contact display, better groups presentation commit 0a9e166d7955d27ff8362036231ac53b55063aac Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:42:37 2019 -0500 Add hidden attribute to the model in prep for deletion of auto-created contacts commit e6ce3b2af9f5951fdb384191e4a700c1d8fd6e80 Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:12:52 2019 -0500 Initial pass at address book commit 740d7e8655bdcc9564fd165cc30bcd215c01694e Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 08:27:06 2019 -0500 Make headers of Preferences > Accounts consistent with General
2019-10-13 01:40:57 +08:00
import React from 'react';
import { Store, ContactsPerspective } from './Store';
import { localized, Actions, AccountStore } from 'mailspring-exports';
import * as Icons from './SVGIcons';
import { ListensToFluxStore, BindGlobalCommands } from 'mailspring-component-kit';
import { showGPeopleReadonlyNotice } from './GoogleSupport';
Add a proper address book with CardDAV + Google People support commit 423cf4f4072961cad2035f0aa9c84f9ca1e22d27 Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 22:33:53 2019 -0500 Replace belcard with homegrown VCard parser because our needs are minimal and the linux binary has relocation issues commit 4ae19c0ed51f1d9f0c87886cccc3616b91ad571d Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 10:38:26 2019 -0500 Skip building a few more belr components, still looking for relocation error cause commit a7ec02a449e27ea7b1375e941c33444c5061047f Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 22:16:15 2019 -0500 Fix windows SRV record lookups for contact directory autodiscovery commit 318a31d2791b34b2c7b27c473e1d9ef844a74dd0 Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:50:06 2019 -0500 Leave vcard_grammar unpacked so mailsync can find it at runtime commit bf7e43e37d995bdd8a5061842600224436a8d465 Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:43:01 2019 -0500 Fix bug in icon case sensitivity commit c283513653fa75658dfe1ce698bd6fca2ca0aeba Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 17:29:24 2019 -0500 Renew Windows Authenticode code signing cert (there goes $500…) commit d13235f65b26b9de2aaf91f47aab46defe094319 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:25:34 2019 -0500 Bump mailsync to move belr dlls commit 00ca6431df1dd22e38e2c4b94f12bae24df7497f Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:22:53 2019 -0500 Bump to xcode9 to fix odd C++11 error commit 47903c99c4f111a7d16d30c60e166501b9b0aa90 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:01:32 2019 -0500 Bump mailsync to build belr as a dll instead of a static lib commit 21d645d4e7dd8acb8248b6cf2bdc8c5496dbe0bb Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 22:38:24 2019 -0500 Bump mailsync commit 3f943031cb3fff74f3602aa4fada102ae5a16b96 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:57:39 2019 -0500 Bump mailsync to fix windows libetpan failure commit 8fb55ca0fcd575580cb7e3724865ab2f94f4edd3 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:36:57 2019 -0500 Bump mailsync, add grammar commit b959c54e503e40c69cb8386c81f114c8e34ba8f7 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:20:13 2019 -0500 Bump mailsync for linux / win32 commit ddb5229d670918d34392e867b85512ab1e1ebfdf Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 22:44:12 2019 -0500 Bump mailsync commit f80e1bc422b844bc8ecc3c7501fe346f90779258 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:11:39 2019 -0500 Fix LESS linter failures commit 66dc60a731cedcebf8b7b7a1360bf3ed43153546 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:00:37 2019 -0500 Extend participant search to return / expand groups commit 3bded91307774db2f5fd05e54c6ed940d6bd2388 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 03:18:11 2019 -0500 Add comments, etc commit 4ede5446deaa7483f34343c81fa87a9e26af7919 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 02:38:50 2019 -0500 Google People API contacts CRUD alongside CardDav commit 96c6a64e46133e152853f849ca14dace548e8474 Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 14:00:34 2019 -0500 Build ContactBook concept to track which accounts have sync running commit 1f6aab108377db2b83730be91e0ea9211826b7ce Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 11:38:03 2019 -0500 Contact and contact group CRUD, address book menus commit b877c58d484c86afca44aaaa2238bae042b85aa3 Author: Ben Gotow <ben@foundry376.com> Date: Sun Oct 6 16:32:33 2019 -0500 Editing contact names working commit 761079304cff925c8ef09dc96ff0864da169fc69 Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:42:59 2019 -0500 Improved styling of YYYYMMDD field commit 71a567276b2f1d89e7837773191cc3956dc6459f Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:06:28 2019 -0500 UI for edit + move + delete contacts commit f1967dd60367d0126fea1f19ef5d576592cdab57 Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:44 2019 -0500 Allow you to turn on / off the “Found in Mail” autocompletions commit 0c2b0eb03b462ca160f2ac7ce8556d6e7473539a Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:14 2019 -0500 Improve contacts window launch perf by lazy loading composer support, scanning less of fs for themes commit 07abd6cb71430b2ac894baa449125645b028253a Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 04:36:10 2019 -0500 Support for CardDav contact display, better groups presentation commit 0a9e166d7955d27ff8362036231ac53b55063aac Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:42:37 2019 -0500 Add hidden attribute to the model in prep for deletion of auto-created contacts commit e6ce3b2af9f5951fdb384191e4a700c1d8fd6e80 Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:12:52 2019 -0500 Initial pass at address book commit 740d7e8655bdcc9564fd165cc30bcd215c01694e Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 08:27:06 2019 -0500 Make headers of Preferences > Accounts consistent with General
2019-10-13 01:40:57 +08:00
interface AddContactToolbarProps {
editing: string | 'new' | false;
perspective: ContactsPerspective;
focusedId?: string;
}
class AddContactToolbarWithData extends React.Component<AddContactToolbarProps> {
constructor(props: AddContactToolbarProps) {
super(props);
}
onAdd = () => {
const { perspective } = this.props;
if (!('accountId' in perspective)) return;
if (showGPeopleReadonlyNotice(perspective.accountId)) return;
Add a proper address book with CardDAV + Google People support commit 423cf4f4072961cad2035f0aa9c84f9ca1e22d27 Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 22:33:53 2019 -0500 Replace belcard with homegrown VCard parser because our needs are minimal and the linux binary has relocation issues commit 4ae19c0ed51f1d9f0c87886cccc3616b91ad571d Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 10:38:26 2019 -0500 Skip building a few more belr components, still looking for relocation error cause commit a7ec02a449e27ea7b1375e941c33444c5061047f Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 22:16:15 2019 -0500 Fix windows SRV record lookups for contact directory autodiscovery commit 318a31d2791b34b2c7b27c473e1d9ef844a74dd0 Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:50:06 2019 -0500 Leave vcard_grammar unpacked so mailsync can find it at runtime commit bf7e43e37d995bdd8a5061842600224436a8d465 Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:43:01 2019 -0500 Fix bug in icon case sensitivity commit c283513653fa75658dfe1ce698bd6fca2ca0aeba Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 17:29:24 2019 -0500 Renew Windows Authenticode code signing cert (there goes $500…) commit d13235f65b26b9de2aaf91f47aab46defe094319 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:25:34 2019 -0500 Bump mailsync to move belr dlls commit 00ca6431df1dd22e38e2c4b94f12bae24df7497f Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:22:53 2019 -0500 Bump to xcode9 to fix odd C++11 error commit 47903c99c4f111a7d16d30c60e166501b9b0aa90 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:01:32 2019 -0500 Bump mailsync to build belr as a dll instead of a static lib commit 21d645d4e7dd8acb8248b6cf2bdc8c5496dbe0bb Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 22:38:24 2019 -0500 Bump mailsync commit 3f943031cb3fff74f3602aa4fada102ae5a16b96 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:57:39 2019 -0500 Bump mailsync to fix windows libetpan failure commit 8fb55ca0fcd575580cb7e3724865ab2f94f4edd3 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:36:57 2019 -0500 Bump mailsync, add grammar commit b959c54e503e40c69cb8386c81f114c8e34ba8f7 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:20:13 2019 -0500 Bump mailsync for linux / win32 commit ddb5229d670918d34392e867b85512ab1e1ebfdf Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 22:44:12 2019 -0500 Bump mailsync commit f80e1bc422b844bc8ecc3c7501fe346f90779258 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:11:39 2019 -0500 Fix LESS linter failures commit 66dc60a731cedcebf8b7b7a1360bf3ed43153546 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:00:37 2019 -0500 Extend participant search to return / expand groups commit 3bded91307774db2f5fd05e54c6ed940d6bd2388 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 03:18:11 2019 -0500 Add comments, etc commit 4ede5446deaa7483f34343c81fa87a9e26af7919 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 02:38:50 2019 -0500 Google People API contacts CRUD alongside CardDav commit 96c6a64e46133e152853f849ca14dace548e8474 Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 14:00:34 2019 -0500 Build ContactBook concept to track which accounts have sync running commit 1f6aab108377db2b83730be91e0ea9211826b7ce Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 11:38:03 2019 -0500 Contact and contact group CRUD, address book menus commit b877c58d484c86afca44aaaa2238bae042b85aa3 Author: Ben Gotow <ben@foundry376.com> Date: Sun Oct 6 16:32:33 2019 -0500 Editing contact names working commit 761079304cff925c8ef09dc96ff0864da169fc69 Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:42:59 2019 -0500 Improved styling of YYYYMMDD field commit 71a567276b2f1d89e7837773191cc3956dc6459f Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:06:28 2019 -0500 UI for edit + move + delete contacts commit f1967dd60367d0126fea1f19ef5d576592cdab57 Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:44 2019 -0500 Allow you to turn on / off the “Found in Mail” autocompletions commit 0c2b0eb03b462ca160f2ac7ce8556d6e7473539a Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:14 2019 -0500 Improve contacts window launch perf by lazy loading composer support, scanning less of fs for themes commit 07abd6cb71430b2ac894baa449125645b028253a Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 04:36:10 2019 -0500 Support for CardDav contact display, better groups presentation commit 0a9e166d7955d27ff8362036231ac53b55063aac Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:42:37 2019 -0500 Add hidden attribute to the model in prep for deletion of auto-created contacts commit e6ce3b2af9f5951fdb384191e4a700c1d8fd6e80 Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:12:52 2019 -0500 Initial pass at address book commit 740d7e8655bdcc9564fd165cc30bcd215c01694e Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 08:27:06 2019 -0500 Make headers of Preferences > Accounts consistent with General
2019-10-13 01:40:57 +08:00
Actions.setFocus({ collection: 'contact', item: null });
Store.setEditing('new');
};
Add a proper address book with CardDAV + Google People support commit 423cf4f4072961cad2035f0aa9c84f9ca1e22d27 Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 22:33:53 2019 -0500 Replace belcard with homegrown VCard parser because our needs are minimal and the linux binary has relocation issues commit 4ae19c0ed51f1d9f0c87886cccc3616b91ad571d Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 10:38:26 2019 -0500 Skip building a few more belr components, still looking for relocation error cause commit a7ec02a449e27ea7b1375e941c33444c5061047f Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 22:16:15 2019 -0500 Fix windows SRV record lookups for contact directory autodiscovery commit 318a31d2791b34b2c7b27c473e1d9ef844a74dd0 Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:50:06 2019 -0500 Leave vcard_grammar unpacked so mailsync can find it at runtime commit bf7e43e37d995bdd8a5061842600224436a8d465 Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:43:01 2019 -0500 Fix bug in icon case sensitivity commit c283513653fa75658dfe1ce698bd6fca2ca0aeba Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 17:29:24 2019 -0500 Renew Windows Authenticode code signing cert (there goes $500…) commit d13235f65b26b9de2aaf91f47aab46defe094319 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:25:34 2019 -0500 Bump mailsync to move belr dlls commit 00ca6431df1dd22e38e2c4b94f12bae24df7497f Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:22:53 2019 -0500 Bump to xcode9 to fix odd C++11 error commit 47903c99c4f111a7d16d30c60e166501b9b0aa90 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:01:32 2019 -0500 Bump mailsync to build belr as a dll instead of a static lib commit 21d645d4e7dd8acb8248b6cf2bdc8c5496dbe0bb Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 22:38:24 2019 -0500 Bump mailsync commit 3f943031cb3fff74f3602aa4fada102ae5a16b96 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:57:39 2019 -0500 Bump mailsync to fix windows libetpan failure commit 8fb55ca0fcd575580cb7e3724865ab2f94f4edd3 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:36:57 2019 -0500 Bump mailsync, add grammar commit b959c54e503e40c69cb8386c81f114c8e34ba8f7 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:20:13 2019 -0500 Bump mailsync for linux / win32 commit ddb5229d670918d34392e867b85512ab1e1ebfdf Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 22:44:12 2019 -0500 Bump mailsync commit f80e1bc422b844bc8ecc3c7501fe346f90779258 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:11:39 2019 -0500 Fix LESS linter failures commit 66dc60a731cedcebf8b7b7a1360bf3ed43153546 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:00:37 2019 -0500 Extend participant search to return / expand groups commit 3bded91307774db2f5fd05e54c6ed940d6bd2388 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 03:18:11 2019 -0500 Add comments, etc commit 4ede5446deaa7483f34343c81fa87a9e26af7919 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 02:38:50 2019 -0500 Google People API contacts CRUD alongside CardDav commit 96c6a64e46133e152853f849ca14dace548e8474 Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 14:00:34 2019 -0500 Build ContactBook concept to track which accounts have sync running commit 1f6aab108377db2b83730be91e0ea9211826b7ce Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 11:38:03 2019 -0500 Contact and contact group CRUD, address book menus commit b877c58d484c86afca44aaaa2238bae042b85aa3 Author: Ben Gotow <ben@foundry376.com> Date: Sun Oct 6 16:32:33 2019 -0500 Editing contact names working commit 761079304cff925c8ef09dc96ff0864da169fc69 Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:42:59 2019 -0500 Improved styling of YYYYMMDD field commit 71a567276b2f1d89e7837773191cc3956dc6459f Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:06:28 2019 -0500 UI for edit + move + delete contacts commit f1967dd60367d0126fea1f19ef5d576592cdab57 Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:44 2019 -0500 Allow you to turn on / off the “Found in Mail” autocompletions commit 0c2b0eb03b462ca160f2ac7ce8556d6e7473539a Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:14 2019 -0500 Improve contacts window launch perf by lazy loading composer support, scanning less of fs for themes commit 07abd6cb71430b2ac894baa449125645b028253a Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 04:36:10 2019 -0500 Support for CardDav contact display, better groups presentation commit 0a9e166d7955d27ff8362036231ac53b55063aac Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:42:37 2019 -0500 Add hidden attribute to the model in prep for deletion of auto-created contacts commit e6ce3b2af9f5951fdb384191e4a700c1d8fd6e80 Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:12:52 2019 -0500 Initial pass at address book commit 740d7e8655bdcc9564fd165cc30bcd215c01694e Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 08:27:06 2019 -0500 Make headers of Preferences > Accounts consistent with General
2019-10-13 01:40:57 +08:00
render() {
const { editing, perspective } = this.props;
const enabled =
'accountId' in perspective &&
editing === false &&
perspective.accountId &&
perspective.type !== 'found-in-mail';
const acct = 'accountId' in perspective && AccountStore.accountForId(perspective.accountId);
Add a proper address book with CardDAV + Google People support commit 423cf4f4072961cad2035f0aa9c84f9ca1e22d27 Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 22:33:53 2019 -0500 Replace belcard with homegrown VCard parser because our needs are minimal and the linux binary has relocation issues commit 4ae19c0ed51f1d9f0c87886cccc3616b91ad571d Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 10:38:26 2019 -0500 Skip building a few more belr components, still looking for relocation error cause commit a7ec02a449e27ea7b1375e941c33444c5061047f Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 22:16:15 2019 -0500 Fix windows SRV record lookups for contact directory autodiscovery commit 318a31d2791b34b2c7b27c473e1d9ef844a74dd0 Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:50:06 2019 -0500 Leave vcard_grammar unpacked so mailsync can find it at runtime commit bf7e43e37d995bdd8a5061842600224436a8d465 Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:43:01 2019 -0500 Fix bug in icon case sensitivity commit c283513653fa75658dfe1ce698bd6fca2ca0aeba Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 17:29:24 2019 -0500 Renew Windows Authenticode code signing cert (there goes $500…) commit d13235f65b26b9de2aaf91f47aab46defe094319 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:25:34 2019 -0500 Bump mailsync to move belr dlls commit 00ca6431df1dd22e38e2c4b94f12bae24df7497f Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:22:53 2019 -0500 Bump to xcode9 to fix odd C++11 error commit 47903c99c4f111a7d16d30c60e166501b9b0aa90 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:01:32 2019 -0500 Bump mailsync to build belr as a dll instead of a static lib commit 21d645d4e7dd8acb8248b6cf2bdc8c5496dbe0bb Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 22:38:24 2019 -0500 Bump mailsync commit 3f943031cb3fff74f3602aa4fada102ae5a16b96 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:57:39 2019 -0500 Bump mailsync to fix windows libetpan failure commit 8fb55ca0fcd575580cb7e3724865ab2f94f4edd3 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:36:57 2019 -0500 Bump mailsync, add grammar commit b959c54e503e40c69cb8386c81f114c8e34ba8f7 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:20:13 2019 -0500 Bump mailsync for linux / win32 commit ddb5229d670918d34392e867b85512ab1e1ebfdf Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 22:44:12 2019 -0500 Bump mailsync commit f80e1bc422b844bc8ecc3c7501fe346f90779258 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:11:39 2019 -0500 Fix LESS linter failures commit 66dc60a731cedcebf8b7b7a1360bf3ed43153546 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:00:37 2019 -0500 Extend participant search to return / expand groups commit 3bded91307774db2f5fd05e54c6ed940d6bd2388 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 03:18:11 2019 -0500 Add comments, etc commit 4ede5446deaa7483f34343c81fa87a9e26af7919 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 02:38:50 2019 -0500 Google People API contacts CRUD alongside CardDav commit 96c6a64e46133e152853f849ca14dace548e8474 Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 14:00:34 2019 -0500 Build ContactBook concept to track which accounts have sync running commit 1f6aab108377db2b83730be91e0ea9211826b7ce Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 11:38:03 2019 -0500 Contact and contact group CRUD, address book menus commit b877c58d484c86afca44aaaa2238bae042b85aa3 Author: Ben Gotow <ben@foundry376.com> Date: Sun Oct 6 16:32:33 2019 -0500 Editing contact names working commit 761079304cff925c8ef09dc96ff0864da169fc69 Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:42:59 2019 -0500 Improved styling of YYYYMMDD field commit 71a567276b2f1d89e7837773191cc3956dc6459f Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:06:28 2019 -0500 UI for edit + move + delete contacts commit f1967dd60367d0126fea1f19ef5d576592cdab57 Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:44 2019 -0500 Allow you to turn on / off the “Found in Mail” autocompletions commit 0c2b0eb03b462ca160f2ac7ce8556d6e7473539a Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:14 2019 -0500 Improve contacts window launch perf by lazy loading composer support, scanning less of fs for themes commit 07abd6cb71430b2ac894baa449125645b028253a Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 04:36:10 2019 -0500 Support for CardDav contact display, better groups presentation commit 0a9e166d7955d27ff8362036231ac53b55063aac Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:42:37 2019 -0500 Add hidden attribute to the model in prep for deletion of auto-created contacts commit e6ce3b2af9f5951fdb384191e4a700c1d8fd6e80 Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:12:52 2019 -0500 Initial pass at address book commit 740d7e8655bdcc9564fd165cc30bcd215c01694e Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 08:27:06 2019 -0500 Make headers of Preferences > Accounts consistent with General
2019-10-13 01:40:57 +08:00
return (
<div style={{ display: 'flex', order: 1000 }}>
<BindGlobalCommands
key={`${enabled}`}
commands={enabled ? { 'core:add-item': this.onAdd } : {}}
>
Add a proper address book with CardDAV + Google People support commit 423cf4f4072961cad2035f0aa9c84f9ca1e22d27 Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 22:33:53 2019 -0500 Replace belcard with homegrown VCard parser because our needs are minimal and the linux binary has relocation issues commit 4ae19c0ed51f1d9f0c87886cccc3616b91ad571d Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 10:38:26 2019 -0500 Skip building a few more belr components, still looking for relocation error cause commit a7ec02a449e27ea7b1375e941c33444c5061047f Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 22:16:15 2019 -0500 Fix windows SRV record lookups for contact directory autodiscovery commit 318a31d2791b34b2c7b27c473e1d9ef844a74dd0 Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:50:06 2019 -0500 Leave vcard_grammar unpacked so mailsync can find it at runtime commit bf7e43e37d995bdd8a5061842600224436a8d465 Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:43:01 2019 -0500 Fix bug in icon case sensitivity commit c283513653fa75658dfe1ce698bd6fca2ca0aeba Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 17:29:24 2019 -0500 Renew Windows Authenticode code signing cert (there goes $500…) commit d13235f65b26b9de2aaf91f47aab46defe094319 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:25:34 2019 -0500 Bump mailsync to move belr dlls commit 00ca6431df1dd22e38e2c4b94f12bae24df7497f Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:22:53 2019 -0500 Bump to xcode9 to fix odd C++11 error commit 47903c99c4f111a7d16d30c60e166501b9b0aa90 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:01:32 2019 -0500 Bump mailsync to build belr as a dll instead of a static lib commit 21d645d4e7dd8acb8248b6cf2bdc8c5496dbe0bb Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 22:38:24 2019 -0500 Bump mailsync commit 3f943031cb3fff74f3602aa4fada102ae5a16b96 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:57:39 2019 -0500 Bump mailsync to fix windows libetpan failure commit 8fb55ca0fcd575580cb7e3724865ab2f94f4edd3 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:36:57 2019 -0500 Bump mailsync, add grammar commit b959c54e503e40c69cb8386c81f114c8e34ba8f7 Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:20:13 2019 -0500 Bump mailsync for linux / win32 commit ddb5229d670918d34392e867b85512ab1e1ebfdf Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 22:44:12 2019 -0500 Bump mailsync commit f80e1bc422b844bc8ecc3c7501fe346f90779258 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:11:39 2019 -0500 Fix LESS linter failures commit 66dc60a731cedcebf8b7b7a1360bf3ed43153546 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:00:37 2019 -0500 Extend participant search to return / expand groups commit 3bded91307774db2f5fd05e54c6ed940d6bd2388 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 03:18:11 2019 -0500 Add comments, etc commit 4ede5446deaa7483f34343c81fa87a9e26af7919 Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 02:38:50 2019 -0500 Google People API contacts CRUD alongside CardDav commit 96c6a64e46133e152853f849ca14dace548e8474 Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 14:00:34 2019 -0500 Build ContactBook concept to track which accounts have sync running commit 1f6aab108377db2b83730be91e0ea9211826b7ce Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 11:38:03 2019 -0500 Contact and contact group CRUD, address book menus commit b877c58d484c86afca44aaaa2238bae042b85aa3 Author: Ben Gotow <ben@foundry376.com> Date: Sun Oct 6 16:32:33 2019 -0500 Editing contact names working commit 761079304cff925c8ef09dc96ff0864da169fc69 Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:42:59 2019 -0500 Improved styling of YYYYMMDD field commit 71a567276b2f1d89e7837773191cc3956dc6459f Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:06:28 2019 -0500 UI for edit + move + delete contacts commit f1967dd60367d0126fea1f19ef5d576592cdab57 Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:44 2019 -0500 Allow you to turn on / off the “Found in Mail” autocompletions commit 0c2b0eb03b462ca160f2ac7ce8556d6e7473539a Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:14 2019 -0500 Improve contacts window launch perf by lazy loading composer support, scanning less of fs for themes commit 07abd6cb71430b2ac894baa449125645b028253a Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 04:36:10 2019 -0500 Support for CardDav contact display, better groups presentation commit 0a9e166d7955d27ff8362036231ac53b55063aac Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:42:37 2019 -0500 Add hidden attribute to the model in prep for deletion of auto-created contacts commit e6ce3b2af9f5951fdb384191e4a700c1d8fd6e80 Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:12:52 2019 -0500 Initial pass at address book commit 740d7e8655bdcc9564fd165cc30bcd215c01694e Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 08:27:06 2019 -0500 Make headers of Preferences > Accounts consistent with General
2019-10-13 01:40:57 +08:00
<button
tabIndex={-1}
disabled={!enabled}
className={`btn btn-toolbar btn-new-contact ${!enabled && 'btn-disabled'}`}
title={
acct
? localized('New contact in %@', acct.label)
: localized('Select an account to add a contact.')
}
onClick={enabled ? this.onAdd : undefined}
>
<Icons.NewPerson />
</button>
</BindGlobalCommands>
</div>
);
}
}
export const AddContactToolbar: React.FunctionComponent<
AddContactToolbarProps
> = ListensToFluxStore(
({ listSource, editing, perspective }) => (
<AddContactToolbarWithData editing={editing} perspective={perspective} />
),
{
stores: [Store],
getStateFromStores: () => ({
editing: Store.editing(),
perspective: Store.perspective(),
}),
}
);
AddContactToolbar.displayName = 'AddContactToolbar';