CI/CD / preconditions (pull_request) Successful in 2s
Native JavaScript checks / Native launcher and release tests (pull_request) Successful in 1m0s
CI/CD / test_and_check_app (pull_request) Successful in 7m2s
CI/CD / Publish immutable image (pull_request) Skipped
macOS checks / Native Rust tests and unsigned build (pull_request) Successful in 1m35s
18 lines
442 B
JavaScript
18 lines
442 B
JavaScript
export function updatePresentation(state) {
|
|
const busy = [
|
|
'checking',
|
|
'downloading',
|
|
'verifying',
|
|
'installing',
|
|
'restarting',
|
|
].includes(state.phase);
|
|
return {
|
|
busy,
|
|
message: `update_${state.phase}`,
|
|
canInstall: Boolean(state.version) && !busy,
|
|
showProgress: ['downloading', 'verifying', 'installing'].includes(
|
|
state.phase,
|
|
),
|
|
};
|
|
}
|