From 7fe2cd1f60cca404fd667a37f713b34012ef1911 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 2 Jul 2020 13:20:31 +0300 Subject: [PATCH] Change default collection names from 'Default' to be descriptive A step towards fixing https://github.com/etesync/android/issues/118 --- src/SyncGate.tsx | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/SyncGate.tsx b/src/SyncGate.tsx index e58edd6..585a0ba 100644 --- a/src/SyncGate.tsx +++ b/src/SyncGate.tsx @@ -117,11 +117,24 @@ export default withRouter(function SyncGate(props: RouteComponentProps<{}> & Pro return; } - ['ADDRESS_BOOK', 'CALENDAR', 'TASKS'].forEach((collectionType) => { + [ + { + type: 'ADDRESS_BOOK', + name: 'My Contacts', + }, + { + type: 'CALENDAR', + name: 'My Calendar', + }, + { + type: 'TASKS', + name: 'My Tasks', + }, + ].forEach((collectionDesc) => { const collection = new EteSync.CollectionInfo(); collection.uid = EteSync.genUid(); - collection.type = collectionType; - collection.displayName = 'Default'; + collection.type = collectionDesc.type; + collection.displayName = collectionDesc.name; const journal = new EteSync.Journal({ uid: collection.uid }); const cryptoManager = new EteSync.CryptoManager(etesync.encryptionKey, collection.uid);