1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

New: Show naming format on rename preview

This commit is contained in:
Mark McDowall
2015-01-23 18:42:28 -08:00
parent b1871c1686
commit 50b843a422
5 changed files with 57 additions and 3 deletions
+27
View File
@@ -0,0 +1,27 @@
'use strict';
define(
[
'vent',
'marionette',
'Settings/MediaManagement/Naming/NamingModel'
], function (vent, Marionette, NamingModel) {
return Marionette.ItemView.extend({
template: 'Rename/RenamePreviewFormatViewTemplate',
templateHelpers: function () {
var type = this.model.get('seriesType');
return {
rename : this.naming.get('renameEpisodes'),
format : this.naming.get(type + 'EpisodeFormat')
};
},
initialize: function () {
this.naming = new NamingModel();
this.naming.fetch();
this.listenTo(this.naming, 'sync', this.render);
}
});
});