• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Solved app.js changes not updating

    User help
    2
    4
    2.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      StephenVDK
      last edited by

      Hello all,

      I'm trying to make a custom dashboard but I'm having issues changing the menu. I've been able to update the html files, but when I make changes in app.js, the menu doesn't update. Anyone run into this issue or am I missing a step?

      Thanks

      1 Reply Last reply Reply Quote 0
      • Will GellerW
        Will Geller
        last edited by

        It sounds like you are running into a browser caching issue. I find that whether I am working locally or on a live mango server I have to explicitly have the browser not cache files when I am previewing changes.

        If you are using google chrome you can have you developer tools open and check the box that says 'Disable Cache' under the network tab. Now when you refresh the page with the dev tools open it will load a fresh copy of all source files.

        If you are using Safari I find that you can do a cmd+opt+e to clear cache before hitting cmd+r to reload the page and it will do the same.

        Infinite Automation - UI Developer

        1 Reply Last reply Reply Quote 0
        • S
          StephenVDK
          last edited by

          I think I've found the issue, in the adminTemplate example, in index.html, there is a line:
          <script>require(['dashboards/adminTemplate/app']);</script>
          So it's not loading the new app.js.
          I've followed the example given and put a renamed copy of the adminTemplate in the overrides folder. What would be the new file path then in overrides? I've tried different extensions I think it should be but it says it can't find that file.

          1 Reply Last reply Reply Quote 0
          • S
            StephenVDK
            last edited by

            That was the issue and I have found the right path now.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post