-
Notifications
You must be signed in to change notification settings - Fork 3
some improvements #1
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for your contributions. Your improvements are very nice but I think some unintended behaviors might happen with custom title & text. |
Hi @duydvu I don’t use the text field or the title field of the item for the popup. The text and the title are from the response of the endpoint. If you don’t want custom text and title just don’t put them into the response. |
For example, the button triggers a request to a 3rd-party API and it returns the data that contains title or text, it will be displayed even if I don't want to. We cannot control the data of the response returned from the API so I just want to have a way to control whether it should use the data as the dialog title & text. |
ok, I understand what you mean I'm going to add a switch as suggested |
How is it going, @kamil-malinski. Is there anything I can help? |
@kamil-malinski I just raised an issue #3 for navigating the browser to another page after the API call. Checking your pull request, there is already: if (result.data?.goto) router.push(result.data.goto); I believe the directus APP will ask for user confirmation for unsaved changes? this is a little bit annoying regarding user experience. I am wondering do you have a solution or workaround for this? |
example for endpoint that returns custom popup-title, popup-text, a custom url to jump to and showing a dialog instead of the notification: