Files
Prowlarr-Prowlarr/src/UI/Rename/RenamePreviewFormatView.js
Leonardo Galli 7db92c6bcf Enable automatic renaming, according to naming scheme, of movie folder after creation of the movie. (#1349)
Please test everything you can about this and report back if everything still works correctly.
2017-04-26 13:31:55 +02:00

22 lines
718 B
JavaScript

var vent = require('vent');
var Marionette = require('marionette');
var NamingModel = require('../Settings/MediaManagement/Naming/NamingModel');
module.exports = Marionette.ItemView.extend({
template : 'Rename/RenamePreviewFormatViewTemplate',
templateHelpers : function() {
//var type = this.model.get('seriesType');
return {
rename : this.naming.get('renameEpisodes'),
folderFormat: this.naming.get('movieFolderFormat'),
format : this.naming.get('standardMovieFormat')
};
},
initialize : function() {
this.naming = new NamingModel();
this.naming.fetch();
this.listenTo(this.naming, 'sync', this.render);
}
});