( routeName: RouteRecordName | null | undefined, prefix: string, )
| 23 | } |
| 24 | |
| 25 | function isRouteNameInSpace( |
| 26 | routeName: RouteRecordName | null | undefined, |
| 27 | prefix: string, |
| 28 | ) { |
| 29 | return ( |
| 30 | typeof routeName === 'string' |
| 31 | && (routeName === prefix || routeName.startsWith(`${prefix}/`)) |
| 32 | ) |
| 33 | } |
| 34 | |
| 35 | function getSavedNotesRouteName() { |
| 36 | const savedRoute = store.app.get<string>('notes.route') |
no outgoing calls
no test coverage detected