-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[QOLDEV-614] use QGOV CDN for grid scripts
- Loading branch information
Showing
1 changed file
with
1 addition
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,6 +168,7 @@ const defaultInitFormioAction = () => { | |
const initFormio = () => { | ||
// Init form | ||
Formio.icons = "fontawesome"; | ||
Formio.cdn.setOverrideUrl('grid', 'https://static.qgov.net.au/formio-qld/v2/v2.x.x-latest/'); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
duttonw
Member
|
||
if (premium) Formio.use(premium); | ||
|
||
// default callback after Formio is loaded | ||
|
does it need
https://static.qgov.net.au/formio-qld/v2/v2.x.x-latest/grid/
also need to be dynamic, since it should be based on the domain the loader is coming from.
see
https://github.com/qld-gov-au/formio/blob/cab1e2a3d13d39cccc0be7da8b8b22bfcb714a18/src/helpers/FormioScript/FormioScript.js#L38C25-L38C25