mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
removed title region,
started adding support for a global tool bar.
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
"use strict";
|
||||
define(['app'], function () {
|
||||
define(['app', 'Shared/Toolbar/CommandCollection'], function () {
|
||||
|
||||
NzbDrone.Shared.Toolbar.ToolbarView = Backbone.Marionette.ItemView.extend({
|
||||
template: 'Template',
|
||||
template: 'Shared/Toolbar/ToolbarTemplate',
|
||||
|
||||
events: {
|
||||
initialize: function () {
|
||||
if (!this.collection) {
|
||||
throw 'CommandCollection needs to be provided';
|
||||
}
|
||||
|
||||
this.model = new Backbone.Model();
|
||||
this.model.set('commands', this.collection.toJSON());
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user