remove server updating status

This commit is contained in:
Matt Hill
2022-01-25 16:34:59 -07:00
committed by Matt Hill
parent 5dc693dd02
commit 4db9ccf27c
4 changed files with 3 additions and 11 deletions

View File

@@ -121,7 +121,10 @@ export class AppComponent {
)
.subscribe(_ => {
this.subscriptions = this.subscriptions.concat([
// watch status to present toast for updated state
this.watchStatus(),
// watch update-progress to present progress bar when server is updating
this.watchUpdateProgress(),
// watch version to refresh browser window
this.watchVersion(),
// watch unread notification count to display toast
@@ -235,9 +238,6 @@ export class AppComponent {
private watchStatus (): Subscription {
return this.patch.watch$('server-info', 'status')
.subscribe(status => {
if (status === ServerStatus.Updating) {
this.watchUpdateProgress()
}
if (status === ServerStatus.Updated && !this.updateToast) {
this.presentToastUpdated()
}

View File

@@ -7,7 +7,6 @@ import { StatusComponentModule } from 'src/app/components/status/status.componen
import { SharingModule } from 'src/app/modules/sharing.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 { MarkdownPageModule } from 'src/app/modals/markdown/markdown.module'
import { AppShowHeaderComponent } from './components/app-show-header/app-show-header.component'
import { AppShowProgressComponent } from './components/app-show-progress/app-show-progress.component'
import { AppShowStatusComponent } from './components/app-show-status/app-show-status.component'
@@ -50,7 +49,6 @@ const routes: Routes = [
InstallWizardComponentModule,
AppConfigPageModule,
SharingModule,
MarkdownPageModule,
],
})
export class AppShowPageModule {}

View File

@@ -135,11 +135,6 @@ export class MockApiService extends ApiService {
}, 500)
const patch = [
{
op: PatchOp.REPLACE,
path: '/server-info/status',
value: ServerStatus.Updating,
},
{
op: PatchOp.REPLACE,
path: '/server-info/update-progress',

View File

@@ -36,7 +36,6 @@ export interface ServerInfo {
export enum ServerStatus {
Running = 'running',
Updating = 'updating',
Updated = 'updated',
BackingUp = 'backing-up',
}