mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
show rejection reasons in a tool tip instead of plaint text in the grid.
This commit is contained in:
parent
31d472a0a0
commit
ef4ad53277
8 changed files with 76 additions and 40 deletions
|
@ -1,26 +0,0 @@
|
|||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backgrid'
|
||||
], function (Backgrid) {
|
||||
|
||||
|
||||
return Backgrid.Cell.extend({
|
||||
|
||||
className: 'approval-status-cell',
|
||||
|
||||
render: function () {
|
||||
var rejections = this.model.get(this.column.get('name'));
|
||||
|
||||
var result = '';
|
||||
|
||||
_.each(rejections, function (reason) {
|
||||
result += reason + ' ';
|
||||
});
|
||||
|
||||
this.$el.html(result);
|
||||
this.delegateEvents();
|
||||
return this;
|
||||
}
|
||||
});
|
||||
});
|
|
@ -18,13 +18,13 @@ define(
|
|||
|
||||
this.$el.html('<i class =\'icon-spinner icon-spin\' />');
|
||||
this.model.save().always(function () {
|
||||
self.$el.html('<i class =\'icon-download-alt\' />');
|
||||
});
|
||||
self.$el.html('<i class =\'icon-download-alt\' title=\'Add to download queue\' />');
|
||||
});
|
||||
},
|
||||
|
||||
render: function () {
|
||||
|
||||
this.$el.html('<i class =\'icon-download-alt\' />');
|
||||
this.$el.html('<i class =\'icon-download-alt\' title=\'Add to download queue\' />');
|
||||
return this;
|
||||
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ define(
|
|||
'Cells/EpisodeNumberCell',
|
||||
'Cells/FileSizeCell',
|
||||
'Cells/QualityCell',
|
||||
'Release/ApprovalStatusCell',
|
||||
'Cells/ApprovalStatusCell',
|
||||
'Shared/SpinnerView'
|
||||
], function (Marionette, Backgrid, ReleaseCollection, IndexerCell, EpisodeNumberCell, FileSizeCell, QualityCell, ApprovalStatusCell, SpinnerView) {
|
||||
return Marionette.Layout.extend({
|
||||
|
@ -55,7 +55,7 @@ define(
|
|||
|
||||
{
|
||||
name : 'rejections',
|
||||
label: 'decision',
|
||||
label: '',
|
||||
cell : ApprovalStatusCell
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue