As a result of this change, the following services will no longer work properly and may crash:
${message}
`, - ), + header: 'Warning', + message, buttons: [ { text: 'Cancel', @@ -164,6 +162,7 @@ export class AppActionsPage { cssClass: 'enter-click', }, ], + cssClass: 'alert-warning-message', }) await alert.present() diff --git a/frontend/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-status/app-show-status.component.ts b/frontend/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-status/app-show-status.component.ts index 290ca13cc..5cf797676 100644 --- a/frontend/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-status/app-show-status.component.ts +++ b/frontend/projects/ui/src/app/pages/apps-routes/app-show/components/app-show-status/app-show-status.component.ts @@ -113,10 +113,8 @@ export class AppShowStatusComponent { if (message) { const alert = await this.alertCtrl.create({ - header: 'Stop Service', - message: new IonicSafeString( - `${message}
`, - ), + header: 'Warning', + message, buttons: [ { text: 'Cancel', @@ -130,6 +128,7 @@ export class AppShowStatusComponent { cssClass: 'enter-click', }, ], + cssClass: 'alert-warning-message', }) await alert.present() @@ -212,7 +211,7 @@ export class AppShowStatusComponent { private async presentAlertStart(message: string): PromiseAre you sure you want to power down your Embassy? This can take several minutes, and your Embassy will not come back online automatically. To power on again, You will need to physically unplug your Embassy and plug it back in..
`, - ), + header: 'Warning', + message: + 'Are you sure you want to power down your Embassy? This can take several minutes, and your Embassy will not come back online automatically. To power on again, You will need to physically unplug your Embassy and plug it back in', buttons: [ { text: 'Cancel', @@ -112,6 +111,7 @@ export class ServerShowPage { cssClass: 'enter-click', }, ], + cssClass: 'alert-warning-message', }) await alert.present() } @@ -119,9 +119,9 @@ export class ServerShowPage { async presentAlertSystemRebuild() { const minutes = Object.keys(this.patch.getData()['package-data']).length * 2 const alert = await this.alertCtrl.create({ - header: 'System Rebuild', + header: 'Warning', message: new IonicSafeString( - `This action will attempt to preform a disk repair operation and system reboot. No data will be deleted. This action should only be executed if directed by a Start9 support specialist. We recommend backing up your device before preforming this action.
If anything happens to the device during the reboot (between the bep and chime), such as loosing power, a power surge, unplugging the drive, or unplugging the Embassy, the filesystem *will* be in an unrecoverable state. Please proceed with caution.
`, + `This action will attempt to preform a disk repair operation and system reboot. No data will be deleted. This action should only be executed if directed by a Start9 support specialist. We recommend backing up your device before preforming this action.
If anything happens to the device during the reboot (between the bep and chime), such as loosing power, a power surge, unplugging the drive, or unplugging the Embassy, the filesystem will be in an unrecoverable state. Please proceed with caution.
`, ), buttons: [ { @@ -165,6 +166,7 @@ export class ServerShowPage { cssClass: 'enter-click', }, ], + cssClass: 'alert-warning-message', }) await alert.present() } diff --git a/frontend/projects/ui/src/app/services/api/api.fixures.ts b/frontend/projects/ui/src/app/services/api/api.fixures.ts index 316e2092d..b5d927c64 100644 --- a/frontend/projects/ui/src/app/services/api/api.fixures.ts +++ b/frontend/projects/ui/src/app/services/api/api.fixures.ts @@ -501,7 +501,7 @@ export module Mock { 'marketing-site': '', 'donation-url': 'https://start9.com', alerts: { - install: null, + install: 'Testing install alert', uninstall: null, restore: null, start: null, diff --git a/frontend/projects/ui/src/app/services/api/api.types.ts b/frontend/projects/ui/src/app/services/api/api.types.ts index 0199405a0..4f23af82d 100644 --- a/frontend/projects/ui/src/app/services/api/api.types.ts +++ b/frontend/projects/ui/src/app/services/api/api.types.ts @@ -184,6 +184,9 @@ export module RR { }> // package.install export type InstallPackageRes = WithRevision