()
| 54 | } |
| 55 | |
| 56 | copy(){ |
| 57 | let name = this.read( 'activePath' ); |
| 58 | if (name){ |
| 59 | const path = this.read( name ); |
| 60 | if (path){ |
| 61 | name = this.nextPathName; |
| 62 | path.config.name = name; |
| 63 | this.write( path.config, path.nodes ); |
| 64 | return name; |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | get nextPathName(){ |
| 70 | const names = this.getPathNames(); |