mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
fix: refresh edit target
This commit is contained in:
@@ -38,8 +38,10 @@ import { ToHumanCronPipe } from '../pipes/to-human-cron.pipe'
|
|||||||
(click)="selectTarget()"
|
(click)="selectTarget()"
|
||||||
>
|
>
|
||||||
Target
|
Target
|
||||||
<tui-badge [appearance]="target()?.type ? 'success' : 'warning'">
|
<tui-badge
|
||||||
{{ target()?.type || 'Select target' }}
|
[appearance]="target()?.[job.targetId]?.type ? 'success' : 'warning'"
|
||||||
|
>
|
||||||
|
{{ target()?.[job.targetId]?.type || 'Select target' }}
|
||||||
</tui-badge>
|
</tui-badge>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
@@ -114,9 +116,7 @@ export class BackupsEditModal {
|
|||||||
inject<TuiDialogContext<BackupJob, BackupJobBuilder>>(POLYMORPHEUS_CONTEXT)
|
inject<TuiDialogContext<BackupJob, BackupJobBuilder>>(POLYMORPHEUS_CONTEXT)
|
||||||
|
|
||||||
readonly target = toSignal(
|
readonly target = toSignal(
|
||||||
from(this.api.getBackupTargets({})).pipe(
|
from(this.api.getBackupTargets({})).pipe(map(({ saved }) => saved)),
|
||||||
map(({ saved }) => saved[this.job.targetId]),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
get job() {
|
get job() {
|
||||||
|
|||||||
Reference in New Issue
Block a user