Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-create all routes on GUI startup #1

Closed
lukethompsxn opened this issue Jul 22, 2019 · 2 comments
Closed

Pre-create all routes on GUI startup #1

lukethompsxn opened this issue Jul 22, 2019 · 2 comments
Assignees
Labels
gui HIGH Priority

Comments

@lukethompsxn
Copy link
Owner

Currently, we have the routes (tabs) updating in the background when changes occur, but only after they have been opened the first time. Clearly, we want to have them displaying all info right from the beginning.

How to test:

  • Start the GUI,
  • Start backend,
  • Open a file in the mounted folder (before you change from overview tab)
  • Ensure data is displayed as expected.
@lukethompsxn
Copy link
Owner Author

I dont think pre-creating will actually solve the problem. I think we will need to change how to handle updating of information. Instead, if we pulled from an array on created(), then each further time it updates just take the first item from the central array

@lukethompsxn
Copy link
Owner Author

Implemented a fix using Vue.prototype. This has been applied to the Logger tab, but needs to be added to the Charts tab @joel-clarke.

Effectively this was done by adding the mounted() function to run through all history of messages received before the creation of the component to update the tab.

mounted() {
            this.logHistory.forEach((log) => {
                this.handleJSON(log);
            });
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gui HIGH Priority
Projects
None yet
Development

No branches or pull requests

2 participants