DEV: Allow to visit the upgrade page while it's running

This commit is contained in:
Jarek Radosz 2023-02-07 14:16:12 +01:00
parent 5498a767da
commit dc389ce058
2 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,8 @@ export default class RepoStatus extends Component {
get upgradeDisabled() {
if (this.args.upgradingRepo) {
return true;
// Allow to visit the upgrade page while it's running
return false;
}
if (!this.args.managerRepo) {

View File

@ -19,7 +19,7 @@
</p>
{{else}}
<button
disabled={{upgradeAllButtonDisabled}}
disabled={{this.upgradeAllButtonDisabled}}
id="upgrade-all"
class="btn"
{{action "upgradeAllButton"}}
@ -41,7 +41,7 @@
{{#each this.model as |repo|}}
<RepoStatus
@repo={{repo}}
@upgradingRepo={{this.upgrading}}
@upgradingRepo={{repo.upgrading}}
@managerRepo={{this.managerRepo}}
/>
{{/each}}