File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 447447 color : rgb (216 , 216 , 216 );
448448 border : 0 ;
449449 cursor : pointer ;
450+ outline : none ;
450451}
451452.collection-import-container {
452453 display : flex ;
463464 color : rgb (216 , 216 , 216 );
464465 border : 0 ;
465466 cursor : pointer ;
467+ outline : none ;
466468}
467469.collections-container {
468470 min-height : 150px ;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import * as store from '../store';
22import * as actions from '../actions/actions' ;
33import db from '../db' ;
44import { ipcRenderer } from 'electron' ;
5+ import uuid from 'uuid/v4' ;
56
67ipcRenderer . on ( 'add-collection' , ( event , args ) => {
78 console . log ( 'here' ) ;
@@ -45,13 +46,16 @@ const collectionsController = {
4546
4647 exportCollection ( id ) {
4748 db . collections . where ( 'id' ) . equals ( id ) . first ( foundCollection => {
49+ // change name and id of collection to satisfy uniqueness requirements of db
50+ foundCollection . name = foundCollection . name + " import" ;
51+ foundCollection . id = uuid ( ) ;
52+
4853 ipcRenderer . send ( 'export-collection' , { collection : foundCollection } ) ;
4954 } )
5055 . catch ( ( error ) => {
5156 console . error ( error . stack || error ) ;
5257 reject ( error ) ;
5358 } ) ;
54- console . log ( 'exporting collection' , id ) ;
5559 } ,
5660
5761 importCollection ( ) {
You can’t perform that action at this time.
0 commit comments