mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-29 03:05:49 +00:00
3638d85314
started adding support for a global tool bar.
21 lines
503 B
JavaScript
21 lines
503 B
JavaScript
"use strict";
|
|
define(['app', 'Shared/Toolbar/CommandCollection'], function () {
|
|
|
|
NzbDrone.Shared.Toolbar.ToolbarView = Backbone.Marionette.ItemView.extend({
|
|
template: 'Shared/Toolbar/ToolbarTemplate',
|
|
|
|
initialize: function () {
|
|
if (!this.collection) {
|
|
throw 'CommandCollection needs to be provided';
|
|
}
|
|
|
|
this.model = new Backbone.Model();
|
|
this.model.set('commands', this.collection.toJSON());
|
|
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|