-
- Archive downloaded episodes that are not currently in backlog.
-
- Avoids unnecessarily increasing your backlog
+ Archive downloaded episodes that are not currently in backlog.
+ Avoids unnecessarily increasing your backlog
-
@@ -168,18 +166,18 @@ Vue.component('quality-chooser', {
this.archivedStatus = 'Archiving...';
const url = 'series/' + this.seriesSlug + '/operation';
- const respsonse = await api.post(url, { type: 'ARCHIVE_EPISODES' });
+ const response = await api.post(url, { type: 'ARCHIVE_EPISODES' });
if (response.status === 201) {
this.archivedStatus = 'Successfully archived episodes';
// Recalculate backlogged episodes after we archive it
- this.backloggedEpisodes();
+ this.$forceUpdate();
} else if (response.status === 204) {
this.archivedStatus = 'No episodes to be archived';
}
// Restore button text
// @TODO: Replace these with vue
- $('#archiveEpisodes').val('Finished');
+ $('#archiveEpisodes').text('Finished');
$('#archiveEpisodes').prop('disabled', true);
},
setQualityFromPreset(preset, oldPreset) {
diff --git a/themes/dark/templates/vue-components/quality-chooser.mako b/themes/dark/templates/vue-components/quality-chooser.mako
index 3dac258dfc..eb85e71175 100644
--- a/themes/dark/templates/vue-components/quality-chooser.mako
+++ b/themes/dark/templates/vue-components/quality-chooser.mako
@@ -35,13 +35,11 @@
-
- Archive downloaded episodes that are not currently in backlog.
-
- Avoids unnecessarily increasing your backlog
+ Archive downloaded episodes that are not currently in backlog.
+ Avoids unnecessarily increasing your backlog
-
+ Archive episodes
{{archivedStatus}}
@@ -168,18 +166,18 @@ Vue.component('quality-chooser', {
this.archivedStatus = 'Archiving...';
const url = 'series/' + this.seriesSlug + '/operation';
- const respsonse = await api.post(url, { type: 'ARCHIVE_EPISODES' });
+ const response = await api.post(url, { type: 'ARCHIVE_EPISODES' });
if (response.status === 201) {
this.archivedStatus = 'Successfully archived episodes';
// Recalculate backlogged episodes after we archive it
- this.backloggedEpisodes();
+ this.$forceUpdate();
} else if (response.status === 204) {
this.archivedStatus = 'No episodes to be archived';
}
// Restore button text
// @TODO: Replace these with vue
- $('#archiveEpisodes').val('Finished');
+ $('#archiveEpisodes').text('Finished');
$('#archiveEpisodes').prop('disabled', true);
},
setQualityFromPreset(preset, oldPreset) {
diff --git a/themes/light/templates/vue-components/quality-chooser.mako b/themes/light/templates/vue-components/quality-chooser.mako
index 3dac258dfc..eb85e71175 100644
--- a/themes/light/templates/vue-components/quality-chooser.mako
+++ b/themes/light/templates/vue-components/quality-chooser.mako
@@ -35,13 +35,11 @@
-
- Archive downloaded episodes that are not currently in backlog.
-
- Avoids unnecessarily increasing your backlog
+ Archive downloaded episodes that are not currently in backlog.
+ Avoids unnecessarily increasing your backlog
-
+ Archive episodes
{{archivedStatus}}
@@ -168,18 +166,18 @@ Vue.component('quality-chooser', {
this.archivedStatus = 'Archiving...';
const url = 'series/' + this.seriesSlug + '/operation';
- const respsonse = await api.post(url, { type: 'ARCHIVE_EPISODES' });
+ const response = await api.post(url, { type: 'ARCHIVE_EPISODES' });
if (response.status === 201) {
this.archivedStatus = 'Successfully archived episodes';
// Recalculate backlogged episodes after we archive it
- this.backloggedEpisodes();
+ this.$forceUpdate();
} else if (response.status === 204) {
this.archivedStatus = 'No episodes to be archived';
}
// Restore button text
// @TODO: Replace these with vue
- $('#archiveEpisodes').val('Finished');
+ $('#archiveEpisodes').text('Finished');
$('#archiveEpisodes').prop('disabled', true);
},
setQualityFromPreset(preset, oldPreset) {