mirror of
https://ghfast.top/https://github.com/discourse/docker_manager.git
synced 2026-05-23 00:04:03 +08:00
20 lines
588 B
JavaScript
20 lines
588 B
JavaScript
import { tracked } from "@glimmer/tracking";
|
|
import Service from "@ember/service";
|
|
|
|
export default class UpgradeStore extends Service {
|
|
@tracked consoleOutput = "";
|
|
@tracked progressPercentage = 0;
|
|
@tracked upgradeStatus = null;
|
|
@tracked repos = [];
|
|
|
|
get running() {
|
|
return this.upgradeStatus === "running";
|
|
}
|
|
|
|
reset({ consoleOutput, progressPercentage, upgradeStatus, repos } = {}) {
|
|
this.consoleOutput = consoleOutput ?? "";
|
|
this.progressPercentage = progressPercentage ?? 0;
|
|
this.upgradeStatus = upgradeStatus ?? null;
|
|
this.repos = repos ?? [];
|
|
}
|
|
}
|