mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
remove server updating status
This commit is contained in:
@@ -121,7 +121,10 @@ export class AppComponent {
|
|||||||
)
|
)
|
||||||
.subscribe(_ => {
|
.subscribe(_ => {
|
||||||
this.subscriptions = this.subscriptions.concat([
|
this.subscriptions = this.subscriptions.concat([
|
||||||
|
// watch status to present toast for updated state
|
||||||
this.watchStatus(),
|
this.watchStatus(),
|
||||||
|
// watch update-progress to present progress bar when server is updating
|
||||||
|
this.watchUpdateProgress(),
|
||||||
// watch version to refresh browser window
|
// watch version to refresh browser window
|
||||||
this.watchVersion(),
|
this.watchVersion(),
|
||||||
// watch unread notification count to display toast
|
// watch unread notification count to display toast
|
||||||
@@ -235,9 +238,6 @@ export class AppComponent {
|
|||||||
private watchStatus (): Subscription {
|
private watchStatus (): Subscription {
|
||||||
return this.patch.watch$('server-info', 'status')
|
return this.patch.watch$('server-info', 'status')
|
||||||
.subscribe(status => {
|
.subscribe(status => {
|
||||||
if (status === ServerStatus.Updating) {
|
|
||||||
this.watchUpdateProgress()
|
|
||||||
}
|
|
||||||
if (status === ServerStatus.Updated && !this.updateToast) {
|
if (status === ServerStatus.Updated && !this.updateToast) {
|
||||||
this.presentToastUpdated()
|
this.presentToastUpdated()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import { StatusComponentModule } from 'src/app/components/status/status.componen
|
|||||||
import { SharingModule } from 'src/app/modules/sharing.module'
|
import { SharingModule } from 'src/app/modules/sharing.module'
|
||||||
import { InstallWizardComponentModule } from 'src/app/components/install-wizard/install-wizard.component.module'
|
import { InstallWizardComponentModule } from 'src/app/components/install-wizard/install-wizard.component.module'
|
||||||
import { AppConfigPageModule } from 'src/app/modals/app-config/app-config.module'
|
import { AppConfigPageModule } from 'src/app/modals/app-config/app-config.module'
|
||||||
import { MarkdownPageModule } from 'src/app/modals/markdown/markdown.module'
|
|
||||||
import { AppShowHeaderComponent } from './components/app-show-header/app-show-header.component'
|
import { AppShowHeaderComponent } from './components/app-show-header/app-show-header.component'
|
||||||
import { AppShowProgressComponent } from './components/app-show-progress/app-show-progress.component'
|
import { AppShowProgressComponent } from './components/app-show-progress/app-show-progress.component'
|
||||||
import { AppShowStatusComponent } from './components/app-show-status/app-show-status.component'
|
import { AppShowStatusComponent } from './components/app-show-status/app-show-status.component'
|
||||||
@@ -50,7 +49,6 @@ const routes: Routes = [
|
|||||||
InstallWizardComponentModule,
|
InstallWizardComponentModule,
|
||||||
AppConfigPageModule,
|
AppConfigPageModule,
|
||||||
SharingModule,
|
SharingModule,
|
||||||
MarkdownPageModule,
|
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class AppShowPageModule {}
|
export class AppShowPageModule {}
|
||||||
|
|||||||
@@ -135,11 +135,6 @@ export class MockApiService extends ApiService {
|
|||||||
}, 500)
|
}, 500)
|
||||||
|
|
||||||
const patch = [
|
const patch = [
|
||||||
{
|
|
||||||
op: PatchOp.REPLACE,
|
|
||||||
path: '/server-info/status',
|
|
||||||
value: ServerStatus.Updating,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
op: PatchOp.REPLACE,
|
op: PatchOp.REPLACE,
|
||||||
path: '/server-info/update-progress',
|
path: '/server-info/update-progress',
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ export interface ServerInfo {
|
|||||||
|
|
||||||
export enum ServerStatus {
|
export enum ServerStatus {
|
||||||
Running = 'running',
|
Running = 'running',
|
||||||
Updating = 'updating',
|
|
||||||
Updated = 'updated',
|
Updated = 'updated',
|
||||||
BackingUp = 'backing-up',
|
BackingUp = 'backing-up',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user