Skip to content

Commit

Permalink
fix: 🐛 Add UI for Emby recently added cronjob settings (#4469)
Browse files Browse the repository at this point in the history
* Add UI for Emby recently added cronjob settings

* Fix typo
  • Loading branch information
sephrat authored Jan 14, 2022
1 parent 97e939d commit 7d47bbe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/Ombi/ClientApp/src/app/settings/jobs/jobs.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@
<button mat-raised-button type="button" class="btn btn-sm btn-primary-outline cronbtn" (click)="testCron(form.get('embyContentSync')?.value)">Test</button>
</div>

<div class="form-group cronBox">
<mat-form-field appearance="outline" floatLabel=always>
<mat-label for="embyRecentlyAddedSync" class="control-mat-label">Emby Recently Added Sync</mat-label>
<input type="text" matInput [ngClass]="{'form-error': form.get('embyRecentlyAddedSync').hasError('required')}" id="embyRecentlyAddedSync" name="embyRecentlyAddedSync" formControlName="embyRecentlyAddedSync">
<small *ngIf="form.get('embyRecentlyAddedSync').hasError('required')" class="error-text">The Emby Recently Added Sync is required</small></mat-form-field>
<button mat-raised-button type="button" class="btn btn-sm btn-primary-outline cronbtn" (click)="testCron(form.get('embyRecentlyAddedSync')?.value)">Test</button>
</div>

<div class="form-group cronBox">
<mat-form-field appearance="outline" floatLabel=always>
<mat-label for="jellyfinContentSync" class="control-label">Jellyfin Sync</mat-label>
Expand Down
2 changes: 1 addition & 1 deletion src/Ombi/ClientApp/src/app/settings/jobs/jobs.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class JobsComponent implements OnInit {
retryRequests: [x.retryRequests, Validators.required],
mediaDatabaseRefresh: [x.mediaDatabaseRefresh, Validators.required],
autoDeleteRequests: [x.autoDeleteRequests, Validators.required],
EmbyRecentlyAddedSync: [x.embyRecentlyAddedSync, Validators.required],
embyRecentlyAddedSync: [x.embyRecentlyAddedSync, Validators.required],
});
});
}
Expand Down

0 comments on commit 7d47bbe

Please # to comment.