feat NewNamespace script setup #2415

Merged
konrad merged 1 commits from dpschen/frontend:feature/feat-NewNamespace-script-setup into main 2022-09-28 13:31:08 +00:00
Member
No description provided.
Member

Hi dpschen!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://2415-feature-feat-newnamespace-script--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi dpschen! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://2415-feature-feat-newnamespace-script--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
dpschen requested review from konrad 2022-09-26 12:51:53 +00:00
konrad was assigned by dpschen 2022-09-26 12:51:56 +00:00
konrad requested changes 2022-09-26 16:02:44 +00:00
konrad left a comment
Owner

Trying to create a new namespace results in an error message:

image

But the namespace is still created.

Trying to create a new namespace results in an error message: ![image](/attachments/6277f102-1f82-435f-8b96-be903c0abe5f) But the namespace is still created.
Author
Member

Yes. I think that was an issue all along but just got obvious now that it's converted to script setup. See b24e9725fa/src/views/namespaces/NewNamespace.vue (L15)
The back function was not defined in the old version as well.
Not sure what the intend here is. I guess you meant to write $router.back, but it seems weird to use that on the input field, since it changes the view aka closes the whole component.

Yes. I think that was an issue all along but just got obvious now that it's converted to script setup. See https://kolaente.dev/vikunja/frontend/src/commit/b24e9725fae6df3982bf97da55421b53826abbbd/src/views/namespaces/NewNamespace.vue#L15 The `back` function was not defined in the old version as well. Not sure what the intend here is. I guess you meant to write `$router.back`, but it seems weird to use that on the input field, since it changes the view aka closes the whole component.
Owner

Not sure what the intend here is. I guess you meant to write $router.back, but it seems weird to use that on the input field, since it changes the view aka closes the whole component.

It should be $router.back(). The idea was that you could close the modal by pressing escape - that already works with the default modal but with the input modal here since it autofocuses the input that input field catches the focus instead. Hence I just placed the listener on the input field directly.

> Not sure what the intend here is. I guess you meant to write $router.back, but it seems weird to use that on the input field, since it changes the view aka closes the whole component. It should be `$router.back()`. The idea was that you could close the modal by pressing escape - that already works with the default modal but with the input modal here since it autofocuses the input that input field catches the focus instead. Hence I just placed the listener on the input field directly.
Author
Member

That makes sense. Will fix!

That makes sense. Will fix!
dpschen force-pushed feature/feat-NewNamespace-script-setup from b24e9725fa to dbbbc1cc32 2022-09-27 16:47:38 +00:00 Compare
dpschen requested review from konrad 2022-09-27 17:10:07 +00:00
Author
Member

@konrad Fixed

@konrad Fixed
konrad requested changes 2022-09-27 17:16:44 +00:00
konrad left a comment
Owner

Trying to create a new namespace results in an error message:

This seems to be still a problem.

> Trying to create a new namespace results in an error message: This seems to be still a problem.
dpschen force-pushed feature/feat-NewNamespace-script-setup from dbbbc1cc32 to 8cca569677 2022-09-27 21:05:12 +00:00 Compare
Author
Member

Sorry…
I fucked up with rebasing and only submitted the fixes but not the original request :D

Sorry… I fucked up with rebasing and only submitted the fixes but not the original request :D
dpschen requested review from konrad 2022-09-27 21:12:57 +00:00
Author
Member

Should work now.

Should work now.
konrad approved these changes 2022-09-28 13:30:59 +00:00
konrad left a comment
Owner

Seems to work fine now.

Seems to work fine now.
konrad merged commit 63f2e6ba6f into main 2022-09-28 13:31:08 +00:00
konrad deleted branch feature/feat-NewNamespace-script-setup 2022-09-28 13:31:08 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.