mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
ui: emver rendering in OS banner
This commit is contained in:
committed by
Aiden McClelland
parent
b9a3a0cb8d
commit
234fc06f76
@@ -1,5 +1,5 @@
|
|||||||
<ion-item button lines="none" *ngIf="updateAvailable$ | async as version" (click)="confirmUpdate(version)">
|
<ion-item button lines="none" *ngIf="updateAvailable$ | async as version" (click)="confirmUpdate(version)">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
New Embassy OS Version {{version}} Available!
|
New Embassy OS Version {{version | displayEmver}} Available!
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
@@ -2,6 +2,7 @@ import { NgModule } from '@angular/core'
|
|||||||
import { CommonModule } from '@angular/common'
|
import { CommonModule } from '@angular/common'
|
||||||
import { UpdateOsBannerComponent } from './update-os-banner.component'
|
import { UpdateOsBannerComponent } from './update-os-banner.component'
|
||||||
import { IonicModule } from '@ionic/angular'
|
import { IonicModule } from '@ionic/angular'
|
||||||
|
import { SharingModule } from 'src/app/modules/sharing.module'
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
@@ -10,6 +11,7 @@ import { IonicModule } from '@ionic/angular'
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
|
SharingModule,
|
||||||
],
|
],
|
||||||
exports: [UpdateOsBannerComponent],
|
exports: [UpdateOsBannerComponent],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -424,7 +424,7 @@ const mockApiServer: () => ReqRes.GetServerRes = () => ({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const mockVersionLatest: ReqRes.GetVersionLatestRes = {
|
const mockVersionLatest: ReqRes.GetVersionLatestRes = {
|
||||||
versionLatest: '15.2.8',
|
versionLatest: '15.2.8.6',
|
||||||
canUpdate: true,
|
canUpdate: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user