Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
- Fix Backlog warning missing word and link.
- Fix archive episodes button, html and function.
  • Loading branch information
sharkykh committed Apr 16, 2018
1 parent a991017 commit 134097a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 24 deletions.
14 changes: 6 additions & 8 deletions themes-default/slim/views/vue-components/quality-chooser.mako
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@
</div>
<div id="archive" v-if="archive">
<h5>
<b>
Archive downloaded episodes that are not currently in <a target="_blank" href="manage/backlogOverview/"><font color="blue"><u>backlog</u>.</font></a>
</b>
<br />Avoids unnecessarily increasing your backlog
<b>Archive downloaded episodes that are not currently in <a target="_blank" href="manage/backlogOverview/" style="color: blue;">backlog</a>.</b>
<br />Avoids unnecessarily increasing your backlog
<br />
</h5>
<button @click="archiveEpisodes" class="btn btn-inline" type="button" value="Archive episodes">
<button @click="archiveEpisodes" id="archiveEpisodes" class="btn btn-inline">Archive episodes</button>
<h5>{{archivedStatus}}</h5>
</div>
</div>
Expand Down Expand Up @@ -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) {
Expand Down
14 changes: 6 additions & 8 deletions themes/dark/templates/vue-components/quality-chooser.mako
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@
</div>
<div id="archive" v-if="archive">
<h5>
<b>
Archive downloaded episodes that are not currently in <a target="_blank" href="manage/backlogOverview/"><font color="blue"><u>backlog</u>.</font></a>
</b>
<br />Avoids unnecessarily increasing your backlog
<b>Archive downloaded episodes that are not currently in <a target="_blank" href="manage/backlogOverview/" style="color: blue;">backlog</a>.</b>
<br />Avoids unnecessarily increasing your backlog
<br />
</h5>
<button @click="archiveEpisodes" class="btn btn-inline" type="button" value="Archive episodes">
<button @click="archiveEpisodes" id="archiveEpisodes" class="btn btn-inline">Archive episodes</button>
<h5>{{archivedStatus}}</h5>
</div>
</div>
Expand Down Expand Up @@ -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) {
Expand Down
14 changes: 6 additions & 8 deletions themes/light/templates/vue-components/quality-chooser.mako
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@
</div>
<div id="archive" v-if="archive">
<h5>
<b>
Archive downloaded episodes that are not currently in <a target="_blank" href="manage/backlogOverview/"><font color="blue"><u>backlog</u>.</font></a>
</b>
<br />Avoids unnecessarily increasing your backlog
<b>Archive downloaded episodes that are not currently in <a target="_blank" href="manage/backlogOverview/" style="color: blue;">backlog</a>.</b>
<br />Avoids unnecessarily increasing your backlog
<br />
</h5>
<button @click="archiveEpisodes" class="btn btn-inline" type="button" value="Archive episodes">
<button @click="archiveEpisodes" id="archiveEpisodes" class="btn btn-inline">Archive episodes</button>
<h5>{{archivedStatus}}</h5>
</div>
</div>
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 134097a

Please sign in to comment.