#4074 (A better way to override get_default_action())
by Luc Saffre · in Developers · assigned to Luc Saffre
Kurzbeschreibung
Kinder
Kommentare
- 5 Jahre, 6 Monate ago von Luc Saffre about #4074 (A better way to override get_default_action()) : TODO: make it even more straignforward by adding an attribute Actor.default_action_name so that the ap dev doesn't need to override a method.
- 5 Jahre, 6 Monate ago von Luc Saffre about #4074 (A better way to override get_default_action()) : Uff, I pushed my work of the last two days: [url luc.lino-framework.org/blog/2021/0402.html].
- 5 Jahre, 6 Monate ago von Luc Saffre about #4074 (A better way to override get_default_action()) : Uff, the About dialog is back in React. But I won't commit tonight because this was an avalanche of changes in the deepest and eldest layers of Lino. Now I will start the test suite and go to sauna.
- 5 Jahre, 6 Monate ago von Sharif Mehedi about #4074 (A better way to override get_default_action()) : I'd like take a look at the change you've made, on a jitsi session maybe. I might have some insight about it and I am curious.
- 5 Jahre, 6 Monate ago von Luc Saffre about #4074 (A better way to override get_default_action()) : I removed the default_elem_action_name attrribute (some mysterious very old idea to have customizable name for the detail_action), but the About dialog still fails to show up in React.
- 5 Jahre, 6 Monate ago von Luc Saffre about #4074 (A better way to override get_default_action()) : Aha, the surprising effect has to do with our json files and the cached site data. The browser doesn't issue the request, even after doing [Shift+Ctrl+F5]. The GET is sent only once per actor after clearing site data.
- 5 Jahre, 6 Monate ago von Luc Saffre about #4074 (A better way to override get_default_action()) : Almost done, but after my changes there is a tiny problem: 127.0.0.1:8000/#/api/about/About/ doesn't work any more in React. Probably because the action_name changed from "show" to "detail", and the React renderer hard-coded it. A good reason to dive into this region of the react front end. First ob...