Milorn
How to expose table of ManageRelatedRecords to widget
I have a Widget that i'm displaying in the header of a ManageRelatedRecords page, from the widget i want to get access to the table, i used the trait on the ManageRelatedRecords page and i put that page inside the getTablePage of the widget and i'm getting this error: it works fine if in the getTablePage i put a ListRecords class instead of a ManageRelatedRecords, but in my case it's manage related records page, so how can i do that ? and another problem is trying to get the owner record of the ManageRelatedRecords from the widget, right now i'm passing it as a parameter for the make in the getHeader but i don't know if that's ideal
10 replies
redirect to edit/view resource modals or open them manually
I have a table with 3 modals: view, create and edit. I want to redirect to redirect to the view or edit modal after the create. Sort of successUrl on the CreateAction but for a modal. In addition how can i manually open resource modals through events ? thank you
4 replies
Open edit modal right after create
I'm using a simple resource (create and edit is handled with modalss. How can i make it so that after creating the entity in the create modal it automatically shows the edit modal for that entity instead of just closing the modal and returning to the table ? In other words after create i want the edit modal to appear.
15 replies
Tab badge count not refreshing and toggle with tab is not animating
I have a task resource using tabs on the list based on the model field is_done. Then i have on the table a ToggleColumn that manages the is_done value. I'm facing the following 2 problems:
1- The toggle animation doesn't play when going from false to true. Upon press it freezes and then the record disappeared and appears on the other tab. But when it's true and i toggle it to false, the animation of the toggle is run and then the record disappear, i want this to happen when in the other direction too.
2- When toggling a record from one tab to another, the badge count doesn't refresh instantly, it's always late by one.
Here are some code screens and a video showing everything.
Thanks in advance !
6 replies
Login issue on anroid tablet
The app works fine on mobile and computers but it has issues on android tablet (didn't try ios). I am forcing the dark mode but on tablet it's still light and when i try to login the page just refreshes and it appends "?" to the url. I checked the console, no errors., same for network.
2 replies
Handling private file upload
How do you handle private file upload where the file shouldn't be accessible in the public storage ? In my case it's working but it's a bit messy, i have a separate model File and then have a morph relationship to every other model that has uploads, and then i use relationship on a FileUpload form component. I then generate a url with the id of the FileModel that points to a route that i made in which i check permission and return the file. This seems so messy, isn't there a cleaner/standard way of doing ?
3 replies