mirror of
https://ghfast.top/https://github.com/discourse/docker_manager.git
synced 2026-05-27 00:44:01 +08:00
Update imports in `docker_manager` plugin to reflect new file structure, moving files to nested directories for better organization. These changes help improve code clarity and maintainability across controllers, models, routes, and templates. No functional behavior changes introduced.
18 lines
358 B
JavaScript
18 lines
358 B
JavaScript
import Route from "@ember/routing/route";
|
|
|
|
export default class UpgradeIndex extends Route {
|
|
model() {
|
|
return this.modelFor("update");
|
|
}
|
|
|
|
async loadRepos(list) {
|
|
for (const repo of list) {
|
|
await repo.findLatest();
|
|
}
|
|
}
|
|
|
|
setupController(controller, model) {
|
|
super.setupController(...arguments);
|
|
this.loadRepos(model);
|
|
}
|
|
}
|