mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
update todos
This commit is contained in:
@@ -64,7 +64,7 @@ export function appInitializer(
|
||||
return () => {
|
||||
storage.migrate036()
|
||||
auth.init()
|
||||
localStorage.init() // @TODO pretty sure we can navigate before this step
|
||||
localStorage.init()
|
||||
router.initialNavigation()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,6 @@ export class GenericFormPage {
|
||||
return
|
||||
}
|
||||
|
||||
// @TODO make this more like generic input component dismissal
|
||||
const success = await handler(this.formGroup.value)
|
||||
if (success !== false) this.modalCtrl.dismiss()
|
||||
}
|
||||
|
||||
@@ -44,12 +44,7 @@ export class AppActionsPage {
|
||||
status: T.Status,
|
||||
action: { key: string; value: T.ActionMetadata },
|
||||
) {
|
||||
if (
|
||||
status &&
|
||||
action.value.allowedStatuses.includes(
|
||||
status.main.status, // @TODO
|
||||
)
|
||||
) {
|
||||
if (status && action.value.allowedStatuses.includes(status.main.status)) {
|
||||
if (!isEmptyObject(action.value.input || {})) {
|
||||
const modal = await this.modalCtrl.create({
|
||||
component: GenericFormPage,
|
||||
@@ -91,7 +86,7 @@ export class AppActionsPage {
|
||||
await alert.present()
|
||||
}
|
||||
} else {
|
||||
const statuses = [...action.value.allowedStatuses] // @TODO
|
||||
const statuses = [...action.value.allowedStatuses]
|
||||
const last = statuses.pop()
|
||||
let statusesStr = statuses.join(', ')
|
||||
let error = ''
|
||||
|
||||
@@ -58,6 +58,7 @@ export class InitService extends Observable<MappedProgress> {
|
||||
}
|
||||
}),
|
||||
catchError(e => {
|
||||
// @TODO this toast is presenting when we navigate away from init page. It seems other websockets exhibit the same behavior, but we never noticed because the error were not being caught and presented in this manner
|
||||
this.errorService.present(e)
|
||||
|
||||
return EMPTY
|
||||
|
||||
@@ -714,7 +714,7 @@ export module Mock {
|
||||
value: 'https://guessagain.com',
|
||||
},
|
||||
},
|
||||
} as any // @TODO why is this necessary?
|
||||
}
|
||||
|
||||
export const ConfigSpec: RR.GetPackageConfigRes['spec'] = {
|
||||
bitcoin: {
|
||||
@@ -1419,7 +1419,7 @@ export module Mock {
|
||||
health: {},
|
||||
},
|
||||
},
|
||||
actions: {}, // @TODO need mocks
|
||||
actions: {},
|
||||
serviceInterfaces: {
|
||||
ui: {
|
||||
id: 'ui',
|
||||
@@ -1618,7 +1618,7 @@ export module Mock {
|
||||
icon: 'assets/img/service-icons/btc-rpc-proxy.png',
|
||||
kind: 'exists',
|
||||
registryUrl: 'https://community-registry.start9.com',
|
||||
versionSpec: '>2.0.0', // @TODO
|
||||
versionSpec: '>2.0.0',
|
||||
configSatisfied: false,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -127,7 +127,7 @@ export const mockPatchData: DataModel = {
|
||||
},
|
||||
},
|
||||
},
|
||||
actions: {}, // @TODO
|
||||
actions: {},
|
||||
serviceInterfaces: {
|
||||
ui: {
|
||||
id: 'ui',
|
||||
|
||||
@@ -41,6 +41,7 @@ export class PatchDbSource extends Observable<Update<DataModel>[]> {
|
||||
catchError((_, original$) => {
|
||||
this.state.retrigger()
|
||||
|
||||
// @TODO this is returning right away, but we need to wait until state emits again from the retrigger() above.
|
||||
return this.state.pipe(
|
||||
filter(current => current === 'running'),
|
||||
take(1),
|
||||
|
||||
Reference in New Issue
Block a user