Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] [bukuserver] Add link to message: Record was successfully created #564

Closed
GreenLunar opened this issue Jan 20, 2022 · 4 comments · Fixed by #636
Closed

Comments

@GreenLunar
Copy link

Feature requests

Currently, bukuserver displays the following message "Record was successfully created."
Please add to this message a link leading to the new bookmark. (i.e. http://localhost:5001/bookmark/?flt0_id_equals=)

Example: Record was successfully created as Title

@GreenLunar GreenLunar changed the title [bukuserver] Add link to message Record was successfully created [feature request] [bukuserver] Add link to message Record was successfully created Jan 20, 2022
@GreenLunar GreenLunar changed the title [feature request] [bukuserver] Add link to message Record was successfully created [feature request] [bukuserver] Add link to message: Record was successfully created Jan 20, 2022
@LeXofLeviafan
Copy link
Collaborator

(i.e. http://localhost:5001/bookmark/?flt0_id_equals=)

I believe /bookmark/details/?id= would be a better fit here.

@LeXofLeviafan
Copy link
Collaborator

As for the feature itself, the message was implemented inside the default handler in flask-admin, using plain-text based functionality implemented in flask; so working around those to implement a hyperlink would be hardly trivial.

There is, however, a way to get what you want (or an approximation thereof); press "Save and Continue Editing" instead of "Save", and you'll be redirected to the edit form of the newly created record (you can then switch to Details tab if you want a read-only view).

@LeXofLeviafan
Copy link
Collaborator

press "Save and Continue Editing" instead of "Save"

Correction: this button is currently only present in the "create" tab (/bookmark/new), which can't be navigated to from within the app.

@LeXofLeviafan
Copy link
Collaborator

…I can add these buttons to the modal (it only takes a few lines in the template), but they'll still redirect to the form page.

LeXofLeviafan added a commit to LeXofLeviafan/buku that referenced this issue Dec 4, 2022
LeXofLeviafan added a commit to LeXofLeviafan/buku that referenced this issue Dec 5, 2022
LeXofLeviafan added a commit to LeXofLeviafan/buku that referenced this issue Dec 6, 2022
LeXofLeviafan added a commit to LeXofLeviafan/buku that referenced this issue Dec 6, 2022
@jarun jarun closed this as completed in #636 Dec 7, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants