Closed dshoreman closed 3 years ago
The first log's content should be loaded automatically.
Log content does not autoload:
To load the first log, it must be triggered manually by clicking its tab.
Autoload can be triggered by refreshing the page, or opening the project in a new tab so that it starts with a clean slate.
This happens because the logs are initialised only when projects/all is empty (i.e. when loading the /projects page): https://github.com/dshoreman/servidor/blob/550fed12e94e2489fd8c0e2593b30cd70192d1d0/resources/js/pages/Projects/ProjectViewer.vue#L201-L207
projects/all
/projects
If it doesn't break Vue it can probably be fixed by awaiting the projects/load action, and moving this.initLog() below the if statement.
await
projects/load
this.initLog()
if
Steps to Reproduce:
Expected Behaviour
The first log's content should be loaded automatically.
Actual Behaviour
Log content does not autoload:
To load the first log, it must be triggered manually by clicking its tab.
Notes
Autoload can be triggered by refreshing the page, or opening the project in a new tab so that it starts with a clean slate.
This happens because the logs are initialised only when
projects/all
is empty (i.e. when loading the/projects
page): https://github.com/dshoreman/servidor/blob/550fed12e94e2489fd8c0e2593b30cd70192d1d0/resources/js/pages/Projects/ProjectViewer.vue#L201-L207If it doesn't break Vue it can probably be fixed by
await
ing theprojects/load
action, and movingthis.initLog()
below theif
statement.