mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
ui: adds version to path of welcome OS
This commit is contained in:
committed by
Aiden McClelland
parent
da922f498e
commit
16a4c41886
@@ -29,7 +29,7 @@ export abstract class ApiService {
|
||||
abstract getNotifications (page: number, perPage: number): Promise<S9Notification[]>
|
||||
abstract deleteNotification (id: string): Promise<Unit>
|
||||
abstract updateAgent (thing: any): Promise<Unit>
|
||||
abstract acknowledgeOSWelcome (): Promise<Unit>
|
||||
abstract acknowledgeOSWelcome (version: string): Promise<Unit>
|
||||
abstract getAvailableApps (): Promise<AppAvailablePreview[]>
|
||||
abstract getAvailableApp (appId: string): Promise<AppAvailableFull>
|
||||
abstract getAvailableAppVersionSpecificInfo (appId: string, versionSpec: string): Promise<AppAvailableVersionSpecificInfo>
|
||||
|
||||
@@ -37,8 +37,8 @@ export class LiveApiService extends ApiService {
|
||||
return this.authRequest<ReqRes.GetServerRes>({ method: Method.GET, url: '/', readTimeout: timeout })
|
||||
}
|
||||
|
||||
async acknowledgeOSWelcome (): Promise<Unit> {
|
||||
return this.authRequest<Unit>({ method: Method.POST, url: '/welcome' })
|
||||
async acknowledgeOSWelcome (version: string): Promise<Unit> {
|
||||
return this.authRequest<Unit>({ method: Method.POST, url: `/welcome/${version}` })
|
||||
}
|
||||
|
||||
async getVersionLatest (): Promise<ReqRes.GetVersionLatestRes> {
|
||||
|
||||
@@ -117,7 +117,7 @@ export class MockApiService extends ApiService {
|
||||
return mockUninstallApp()
|
||||
}
|
||||
|
||||
async acknowledgeOSWelcome () {
|
||||
async acknowledgeOSWelcome (version: string) {
|
||||
await pauseFor(2000)
|
||||
this.welcomeAck = true
|
||||
return { }
|
||||
|
||||
@@ -75,7 +75,7 @@ export class SyncNotifier {
|
||||
|
||||
modal.onWillDismiss().then(() => {
|
||||
this.osWelcomeOpen = false
|
||||
return this.apiService.acknowledgeOSWelcome()
|
||||
return this.apiService.acknowledgeOSWelcome(this.config.version)
|
||||
})
|
||||
await modal.present()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user