mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
New: Show naming format on rename preview
This commit is contained in:
@@ -7,22 +7,32 @@ define(
|
||||
'Rename/RenamePreviewCollection',
|
||||
'Rename/RenamePreviewCollectionView',
|
||||
'Rename/RenamePreviewEmptyCollectionView',
|
||||
'Rename/RenamePreviewFormatView',
|
||||
'Shared/LoadingView',
|
||||
'Commands/CommandController'
|
||||
], function (_, vent, Marionette, RenamePreviewCollection, RenamePreviewCollectionView, EmptyCollectionView, LoadingView, CommandController) {
|
||||
], function (_,
|
||||
vent,
|
||||
Marionette,
|
||||
RenamePreviewCollection,
|
||||
RenamePreviewCollectionView,
|
||||
EmptyCollectionView,
|
||||
RenamePreviewFormatView,
|
||||
LoadingView,
|
||||
CommandController) {
|
||||
|
||||
return Marionette.Layout.extend({
|
||||
className : 'modal-lg',
|
||||
template : 'Rename/RenamePreviewLayoutTemplate',
|
||||
|
||||
regions: {
|
||||
renamePreviews : '#rename-previews'
|
||||
renamePreviews : '#rename-previews',
|
||||
formatRegion : '.x-format-region'
|
||||
},
|
||||
|
||||
ui: {
|
||||
pathInfo : '.x-path-info',
|
||||
renameAll : '.x-rename-all',
|
||||
checkboxIcon: '.x-rename-all-button i'
|
||||
checkboxIcon : '.x-rename-all-button i'
|
||||
},
|
||||
|
||||
events: {
|
||||
@@ -47,6 +57,7 @@ define(
|
||||
|
||||
onRender: function() {
|
||||
this.renamePreviews.show(new LoadingView());
|
||||
this.formatRegion.show(new RenamePreviewFormatView({ model: this.model }));
|
||||
},
|
||||
|
||||
_showPreviews: function () {
|
||||
|
||||
Reference in New Issue
Block a user