chore: cleanup and small misc fixes

display success alert if on latest EOS after check for update

fix bug with loader dismiss after alert present

fix restart button on update complete alert and fix mocks to account for this state

fix make clean and adjust default registry names
This commit is contained in:
Lucy Cifferello
2022-06-14 18:38:36 -06:00
committed by Lucy C
parent 4ad9886517
commit 37304a9d92
28 changed files with 221 additions and 130 deletions

View File

@@ -66,22 +66,30 @@
<ion-footer>
<ion-toolbar>
<ng-container *ngIf="!initializing && swiper">
<ion-buttons slot="end" style="padding-right: 8px">
<ion-buttons slot="end" class="ion-padding-end">
<ion-button
*ngIf="error; else noError"
fill="solid"
color="dark"
(click)="dismiss()"
class="enter-click"
class="enter-click btn-128"
>
<b>Dismiss</b>
Dismiss
</ion-button>
<ng-template #noError>
<ion-button
*ngIf="!currentSlide.loading && !swiper.isEnd"
fill="solid"
color="primary"
(click)="next()"
class="enter-click"
class="enter-click btn-128"
[class.no-click]="currentSlide.loading"
>
<b>Continue</b>
{{
currentIndex < swiper.slides.length - 2
? 'Continue'
: params.submitBtn
}}
</ion-button>
</ng-template>
</ion-buttons>

View File

@@ -27,6 +27,7 @@ export class AppWizardComponent {
action: WizardAction
title: string
slides: SlideDefinition[]
submitBtn: string
version?: string
}
@@ -76,7 +77,6 @@ export class AppWizardComponent {
}
setError(e: any) {
console.log(e)
this.error = e
}

View File

@@ -7,7 +7,7 @@
{{ v.version }}
</b>
</h4>
<hr style="height: 0; border-width: 1px" />
<div class="underline" style="margin: unset"></div>
<div [innerHTML]="v.notes | markdown"></div>
<br />
</div>

View File

@@ -63,6 +63,7 @@ export class WizardDefs {
title,
version,
slides: slides.filter(exists),
submitBtn: 'Begin Update',
}
}
@@ -110,6 +111,7 @@ export class WizardDefs {
title,
version,
slides: slides.filter(exists),
submitBtn: 'Begin Update',
}
}
@@ -160,6 +162,7 @@ export class WizardDefs {
title,
version,
slides: slides.filter(exists),
submitBtn: 'Begin Downgrade',
}
}
@@ -199,6 +202,7 @@ export class WizardDefs {
action: 'uninstall',
title,
slides: slides.filter(exists),
submitBtn: 'Uninstall Anyway',
}
}
@@ -228,6 +232,7 @@ export class WizardDefs {
action: 'stop',
title,
slides: slides.filter(exists),
submitBtn: 'Stop Anyway',
}
}
@@ -261,6 +266,7 @@ export class WizardDefs {
action: 'configure',
title,
slides: slides.filter(exists),
submitBtn: 'Configure Anyway',
}
}
}

View File

@@ -14,7 +14,7 @@
rendering.display === PR[PS.Stopping].display &&
(sigtermTimeout | durationToSeconds) > 30
"
>This may take a while.</span
>this may take a while</span
>
</span>
<span *ngIf="installProgress">