推进 INI 面板 readonly status API
This commit is contained in:
@@ -4,6 +4,9 @@ import {
|
||||
import {
|
||||
loadMachineSessionForControlPageWorkflow,
|
||||
} from "./control-page-session-workflow.js";
|
||||
import {
|
||||
readMachineSessionReadonlyStatus,
|
||||
} from "./readonly-status-api.js";
|
||||
|
||||
export function createMachineSessionControlPageController({
|
||||
panelFrame,
|
||||
@@ -61,6 +64,13 @@ export function createMachineSessionControlPageController({
|
||||
});
|
||||
}
|
||||
|
||||
function readStatus() {
|
||||
return readMachineSessionReadonlyStatus({
|
||||
getPanelApi,
|
||||
getControlView,
|
||||
});
|
||||
}
|
||||
|
||||
function startPolling() {
|
||||
if (!refreshTimer) {
|
||||
refreshTimer = setIntervalFn(render, pollMs);
|
||||
@@ -85,6 +95,7 @@ export function createMachineSessionControlPageController({
|
||||
getPanelWindow,
|
||||
loadSessionState,
|
||||
mount,
|
||||
readStatus,
|
||||
refresh,
|
||||
render,
|
||||
startPolling,
|
||||
|
||||
Reference in New Issue
Block a user