mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-17 21:26:22 -04:00
Fixed: Repaired Cutoff Unmet UI and added Cutoff Unmet status badge to History.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{{#if proper}}
|
||||
<span class="badge badge-info" title="PROPER">{{quality.name}}</span>
|
||||
{{else}}
|
||||
<span class="badge badge-inverse">{{quality.name}}</span>
|
||||
<span class="badge">{{quality.name}}</span>
|
||||
{{/if}}
|
||||
@@ -78,7 +78,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
td.episode-status-cell, td.quality-cell {
|
||||
td.episode-status-cell, td.quality-cell, td.history-quality-cell {
|
||||
text-align: center;
|
||||
width: 80px;
|
||||
|
||||
|
||||
31
src/UI/History/Table/HistoryQualityCell.js
Normal file
31
src/UI/History/Table/HistoryQualityCell.js
Normal file
@@ -0,0 +1,31 @@
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'Cells/NzbDroneCell'
|
||||
], function (NzbDroneCell) {
|
||||
return NzbDroneCell.extend({
|
||||
|
||||
className: 'history-quality-cell',
|
||||
|
||||
render: function () {
|
||||
|
||||
var title = '';
|
||||
var quality = this.model.get('quality');
|
||||
|
||||
if (quality.proper) {
|
||||
title = 'PROPER';
|
||||
}
|
||||
|
||||
if (this.model.get('qualityCutoffNotMet')) {
|
||||
this.$el.html('<span class="badge badge-inverse" title="{0}">{1}</span>'.format(title, quality.quality.name));
|
||||
}
|
||||
else {
|
||||
this.$el.html('<span class="badge" title="{0}">{1}</span>'.format(title, quality.quality.name));
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
@@ -8,7 +8,7 @@ define(
|
||||
'Cells/SeriesTitleCell',
|
||||
'Cells/EpisodeNumberCell',
|
||||
'Cells/EpisodeTitleCell',
|
||||
'Cells/QualityCell',
|
||||
'History/Table/HistoryQualityCell',
|
||||
'Cells/RelativeDateCell',
|
||||
'History/Table/HistoryDetailsCell',
|
||||
'Shared/Grid/Pager',
|
||||
@@ -21,7 +21,7 @@ define(
|
||||
SeriesTitleCell,
|
||||
EpisodeNumberCell,
|
||||
EpisodeTitleCell,
|
||||
QualityCell,
|
||||
HistoryQualityCell,
|
||||
RelativeDateCell,
|
||||
HistoryDetailsCell,
|
||||
GridPager,
|
||||
@@ -62,9 +62,9 @@ define(
|
||||
sortable : false
|
||||
},
|
||||
{
|
||||
name : 'quality',
|
||||
name : 'this',
|
||||
label : 'Quality',
|
||||
cell : QualityCell,
|
||||
cell : HistoryQualityCell,
|
||||
sortable : false
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user