Overrides for dashboard not updating
-
I've copied the dashboard files to overrides and done all the changes to it for my interface and I put the home.html into the following location but the webpage is not showing any changes I make to this file anymore. I've check for any errors but don't see any.
/mango/overrides/web/modules/dashboards/web/mnt/views/dashboard/home.html
mnt is my application name and the following is the URL I use to gain access to it
www.mydomain.com:8080/modules/dashboards/web/mnt/#/dashboard/home
I've stopped and restarted the server and still no changes are showing up.
Any ideas what I missed?
-
I would try to see if it is a browser caching issue first. I wrote up the directions for doing a hard refresh here:
http://infiniteautomation.com/forum/topic/2283/app-js-changes-not-updating/2
I would recommend copying the adminTemplate which will give you a blank slate menu to customize. Directions are here:
http://localhost:8080/modules/dashboards/web/mdAdmin/#/dashboard/examples/basics/create-dashboard
http://localhost:8080/modules/dashboards/web/mdAdmin/#/dashboard/examples/templates/admin-templateNote:
You will then need to update the loader script at the bottom of the index.html file. Replace require(['dashboards/adminTemplate/app']); with require(['dashboards/mnt/app']);. -
Thanks, it was the browser cache. Once I cleared this it automatically updated and I can see the changes now.
Not ideal for my client to have to do this but at least I know about it now.
The path was already correct in the index.html file as the custom dashboard was working, just not showing any changes.
-
Usually it is not every single time you refresh the page. Often it is just the first time after a file is edited. Then it will only be a regular refresh while developing.
-
We are working on a new feature to have the browser refresh content when needed so that users never have to clear cache. This should be out in the next release in the next month or so.