dashboard-ui/modules/tabbedview/artiststab.js
2023-08-31 15:30:17 +02:00

1 line
1.5 KiB
JavaScript

define(["exports","./itemstab.js"],function(_exports,_itemstab){function ArtistsTab(view,params,options){this.options=options,_itemstab.default.apply(this,arguments)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,Object.assign(ArtistsTab.prototype,_itemstab.default.prototype),ArtistsTab.prototype.supportsAlphaPicker=function(){return!0},ArtistsTab.prototype.getQueryIncludeItemTypes=function(){return[]},ArtistsTab.prototype.getApiClientQueryMethodName=function(){return"albumartists"===this.options.mode?"getAlbumArtists":"getArtists"},ArtistsTab.prototype.getSettingsKey=function(){var suffix="-"+(this.options.mode||"artists");return _itemstab.default.prototype.getSettingsKey.call(this)+suffix},ArtistsTab.prototype.getCardOptions=function(items,settings){var options=_itemstab.default.prototype.getCardOptions.apply(this,arguments);return options.round=!0,options},ArtistsTab.prototype.getItemTypes=function(){return["MusicArtist"]},ArtistsTab.prototype.getBaseQuery=function(){var query=_itemstab.default.prototype.getBaseQuery.apply(this,arguments);return"albumartists"===this.options.mode?query.ArtistType="AlbumArtist":"composers"===this.options.mode?query.ArtistType="Composer":query.ArtistType="Artist,AlbumArtist",query},ArtistsTab.prototype.getPrefixesApiClientMethodName=function(){return"getArtistPrefixes"},ArtistsTab.prototype.getPrefixQueryIncludeItemTypes=function(){return[]},ArtistsTab.prototype.loadTemplate=function(){return this.loadItemsTemplate()},_exports.default=ArtistsTab});