| 09:13 | * | NicholasPetrakak has joined |
| 12:03 | * | farmBOT has joined |
| 18:09 | * | < matrix.org/_matrix/media/r0/download/mat > |
| 18:14 | paul121[m] | hmm yes I think you might be right |
| 18:14 | symbioquine[m] | cool |
| 18:15 | paul121[m] | ah well, no not necessarily :-) |
| 18:16 | paul121[m] | this is where I was hesitant on going full-on with "instance" settings |
| 18:17 | paul121[m] | all this allows right now is changing the default `onFocusOnly` setting that is passed when creating new instances |
| 18:17 | symbioquine[m] | But as written currently the `drupalSettings.farm_map[mapId].instance` wouldn't do anything because nothing's populating it right? |
| 18:17 | * | < matrix.org/_matrix/media/r0/download/mat > |
| 18:18 | symbioquine[m] | ah, I see |
| 18:18 | paul121[m] | so I guess the question is, should it be possible to add other `options` in that global drupalSettings area? |
| 18:19 | paul121[m] | or should it always be under the `instances.{id}.instance` key? |
| 18:19 | paul121[m] | or should farmOS-map have a more standardized method? :-) |
| 18:20 | paul121[m] | this was definitely a first step though and totally open to thoughts on this! |
| 18:22 | symbioquine[m] | <paul121[m] "so I guess the question is, shou"> It looks like there's currently code that does that; github.com/farmOS/farmOS/blob/eae26e5e7f |
| 18:23 | paul121[m] | <paul121[m] "so I guess the question is, shou"> ah, so this is what we're doing with WKT: github.com/paul121/farmOS/blob/25aafb017 |
| 18:23 | paul121[m] | yep, and I think WKT is the only core one that does it |
| 18:23 | symbioquine[m] | But of course, as we discussed in github.com/farmOS/farmOS-map/issues/110, the behavior has to manually get stuff out of there in its code. |
| 18:24 | paul121[m] | right |
| 18:25 | paul121[m] | I'd like to see behaviors not have to depend on `drupalSettings` but perhaps that is a longshot right now |
| 18:26 | paul121[m] | ah, also here: github.com/paul121/farmOS/blob/25aafb017 |
| 18:28 | paul121[m] | we should decide on a more standard way to provide these things |
| 18:32 | paul121[m] | I think there should be a distinction of `instance` settings.. maybe the `map_type` `options` should really just be `instance_settings` ? |
| 18:33 | paul121[m] | but also having a more general set of `options` that behaviors could pull from... I see this being useful, especially with the config entity |