mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 20:44:00 +02:00
File Browser
New: File Browser to navigate to folders when choosing paths
This commit is contained in:
@@ -7,8 +7,8 @@ define(
|
||||
'Mixins/AsModelBoundView',
|
||||
'Mixins/AsValidatedView',
|
||||
'Mixins/AsEditModalView',
|
||||
'Mixins/AutoComplete',
|
||||
'Mixins/TagInput'
|
||||
'Mixins/TagInput',
|
||||
'Mixins/FileBrowser'
|
||||
], function (vent, Marionette, Profiles, AsModelBoundView, AsValidatedView, AsEditModalView) {
|
||||
|
||||
var view = Marionette.ItemView.extend({
|
||||
@@ -28,6 +28,15 @@ define(
|
||||
this.model.set('profiles', Profiles);
|
||||
},
|
||||
|
||||
onRender: function () {
|
||||
this.ui.path.fileBrowser();
|
||||
|
||||
this.ui.tags.tagInput({
|
||||
model : this.model,
|
||||
property : 'tags'
|
||||
});
|
||||
},
|
||||
|
||||
_onBeforeSave: function () {
|
||||
var profileId = this.ui.profile.val();
|
||||
this.model.set({ profileId: profileId});
|
||||
@@ -38,14 +47,6 @@ define(
|
||||
vent.trigger(vent.Commands.CloseModalCommand);
|
||||
},
|
||||
|
||||
onRender: function () {
|
||||
this.ui.path.autoComplete('/directories');
|
||||
this.ui.tags.tagInput({
|
||||
model : this.model,
|
||||
property : 'tags'
|
||||
});
|
||||
},
|
||||
|
||||
_removeSeries: function () {
|
||||
vent.trigger(vent.Commands.DeleteSeriesCommand, {series:this.model});
|
||||
}
|
||||
|
Reference in New Issue
Block a user