Skip to content

Commit

Permalink
fix: Updating UI / Recreate migration
Browse files Browse the repository at this point in the history
* Updated the UI to show the filter-index label
* Added link to documentation for filter-index for the label.
* Re ran migration to recreate after updates and deleted previous one.

Fixes: Issue #292
  • Loading branch information
disaac committed Jul 1, 2024
1 parent 43a8980 commit 01f5cf2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/frontend/src/app/settings/settings.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
<label>API Token</label>
<input type="text" class="form-control" placeholder="" formControlName="jackett_token" required>
</div>
<div class="my-2">
<a target="_blank" href="https://github.com/Jackett/Jackett#filter-indexers"><label>Filter-Index</label></a>
<input type="text" class="form-control" placeholder="all" formControlName="jackett_filter_index" required>
</div>
<div class="my-2 d-flex justify-content-between">
<button type="button" class="btn btn-sm btn-outline-primary position-relative" (click)="saveAndVerifyJackettIndexers()">
<ngx-loading [show]="isVeryingJackettIndexers"></ngx-loading>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.0.2 on 2024-06-25 21:18
# Generated by Django 3.0.2 on 2024-07-01 15:40

from django.db import migrations, models

Expand All @@ -10,7 +10,7 @@ class Migration(migrations.Migration):
]

operations = [
migrations.AlterField(
migrations.AddField(
model_name='nefarioussettings',
name='jackett_filter_index',
field=models.CharField(default='all', help_text='Optional Jackett index filter to use for searches', max_length=500),
Expand Down
2 changes: 1 addition & 1 deletion src/nefarious/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class NefariousSettings(models.Model):
jackett_host = models.CharField(max_length=500, default='jackett')
jackett_port = models.IntegerField(default=9117)
jackett_token = models.CharField(max_length=500, default=JACKETT_TOKEN_DEFAULT)
jackett_filter_index = models.CharField(max_length=500, default="all", help_text='Optional Jackett index filter to use for searches')
jackett_filter_index = models.CharField(max_length=500, default='all', help_text='Optional Jackett index filter to use for searches')

# transmission
transmission_host = models.CharField(max_length=500, default='transmission')
Expand Down

0 comments on commit 01f5cf2

Please sign in to comment.