ansijet icon indicating copy to clipboard operation
ansijet copied to clipboard

How to automatically refresh the log page?

Open AjeetK opened this issue 8 years ago • 6 comments

I had setup ansijet and using a button to trigger a playbook after modifying the source code. After clicking on the button the trigger gets invoked and the user gets redirected to logs index page. Now I want to refresh the logs page after a fixed interval of time. How to do that?

AjeetK avatar Feb 29 '16 13:02 AjeetK

I'm not sure what you're asking for. Are you asking if there's a way to make the logs page auto-refresh itself? (at the moment there isn't).

hiddentao avatar Feb 29 '16 15:02 hiddentao

@hiddentao Yes am asking for the logs page to auto-refresh itself.

AjeetK avatar Feb 29 '16 16:02 AjeetK

Sorry, no support for that at the moment.

hiddentao avatar Feb 29 '16 16:02 hiddentao

I tried doing it with javascript but you have used KOA framework of nodejs and I even looked at the documentation of KOA but didn't found any solution for it.

AjeetK avatar Feb 29 '16 17:02 AjeetK

Easiest way would be to add some Javascript (or even a refresh meta head tag) into the Jade template for that page -> https://github.com/hiddentao/ansijet/blob/master/src/views/logs/index.jade

hiddentao avatar Feb 29 '16 17:02 hiddentao

Ok, thakyou. Will try it out.

AjeetK avatar Feb 29 '16 17:02 AjeetK