feat: rename lists to projects #2697
|
@ -359,7 +359,7 @@ const router = createRouter({
|
||||||
// Redirect the user to list view by default
|
// Redirect the user to list view by default
|
||||||
konrad marked this conversation as resolved
Outdated
|
|||||||
|
|
||||||
const savedProjectView = getProjectView(to.params.projectId)
|
const savedProjectView = getProjectView(to.params.projectId)
|
||||||
console.debug('Replaced project view with', savedProjectView)
|
console.debug('Replaced list view with', savedProjectView)
|
||||||
konrad marked this conversation as resolved
Outdated
dpschen
commented
Should be:
Should be:
```ts
console.debug('Replaced list view with', savedProjectView)
```
konrad
commented
I'd argue this is a project view here. It can be any of the four views (or at least that's what I meant when I originally added the log). I'd argue this is a project view here. It can be any of the four views (or at least that's what I meant when I originally added the log).
dpschen
commented
I thought that it was refering to the default view which is the 'list'. That's why it's replacing it. at all. If there is no saved view nothing will be replaced and the default stays list. I thought that it was refering to the default view which is the 'list'. That's why it's replacing it. at all. If there is no saved view nothing will be replaced and the default stays list.
konrad
commented
okay that makes sense. okay that makes sense.
konrad
commented
Changed! Changed!
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
name: router.hasRoute(savedProjectView)
|
name: router.hasRoute(savedProjectView)
|
||||||
|
|
Reference in New Issue
Block a user
This redirects indead to the
list
view!