fix(10.1): WR-02 disable plugin stylesheets on screens that are not controller views
The router now drives stylesheet activation after every confirmed navigation: the list, create and record routes enable their controller's links, and settings, login, not-found and a controller whose schema has not arrived yet enable none. Rebuilt the embedded admin dist.
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
// {base}/assets/; they load when that controller's view opens, never
|
||||
// earlier. Every script loads once per URL as a module script, and a script
|
||||
// that fails to load is forgotten, so a later navigation can try again.
|
||||
// Stylesheet links belong to one controller: opening another controller
|
||||
// disables them, so plugin CSS never styles a view it was not written for.
|
||||
// Stylesheet links belong to one controller: the router disables them on
|
||||
// every navigation to another controller or to a screen that is not a
|
||||
// controller view, so plugin CSS never styles a view it was not written for.
|
||||
// Files load only through script and link elements; nothing here fetches.
|
||||
import type { ControllerAssets } from '../api/types'
|
||||
import { runtime } from './runtime'
|
||||
|
||||
Reference in New Issue
Block a user