From 76f497f2fe42bd237b4ba379152859cb371341a5 Mon Sep 17 00:00:00 2001 From: Junhao Liao Date: Thu, 3 Oct 2024 13:25:28 +0800 Subject: [PATCH] Complete docs for LOAD_STATE. --- new-log-viewer/src/typings/worker.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/new-log-viewer/src/typings/worker.ts b/new-log-viewer/src/typings/worker.ts index 3fef9468..d413f22e 100644 --- a/new-log-viewer/src/typings/worker.ts +++ b/new-log-viewer/src/typings/worker.ts @@ -6,8 +6,20 @@ import {LOG_LEVEL} from "./logs"; * Various states of a load process. UI elements may be enabled or disabled based on the state. */ enum LOAD_STATE { + + /** + * When there is no file opened in the viewer. + */ UNOPENED = "unopened", + + /** + * When a request is pending response. + */ LOADING = "loading", + + /** + * When there is no pending response from any request. + */ READY = "ready", }