refactor(patch-db): use PatchDB class declaratively (#1562)

* refactor(patch-db): use PatchDB class declaratively

* chore: remove initial source before init

* chore: show spinner

* fix: show Connecting to Embassy spinner until first connection

* fix: switching marketplaces

* allow for subscription to end with take when installing a package

* update patchdb

Co-authored-by: Lucy Cifferello <12953208+elvece@users.noreply.github.com>
This commit is contained in:
Alex Inkin
2022-06-23 01:09:14 +03:00
committed by GitHub
parent a8749f574a
commit 53ca9b0420
19 changed files with 142 additions and 105 deletions

View File

@@ -6,7 +6,6 @@ import { ApiService } from '../../services/api/embassy-api.service'
import { AppWizardComponent, SlideDefinition } from './app-wizard.component'
import { ConfigService } from 'src/app/services/config.service'
import { MarketplaceService } from 'src/app/services/marketplace.service'
import { first } from 'rxjs/operators'
@Injectable({ providedIn: 'root' })
export class WizardDefs {
@@ -45,7 +44,6 @@ export class WizardDefs {
id,
'version-spec': version ? `=${version}` : undefined,
})
.pipe(first())
.toPromise(),
},
},
@@ -87,7 +85,6 @@ export class WizardDefs {
id,
'version-spec': version ? `=${version}` : undefined,
})
.pipe(first())
.toPromise(),
},
},