mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
19 lines
460 B
JavaScript
19 lines
460 B
JavaScript
define(['components/favoriteitems'], function (favoriteItems) {
|
|
|
|
return function (view, params) {
|
|
|
|
var self = this;
|
|
|
|
view.addEventListener('viewshow', function (e) {
|
|
|
|
var isRestored = e.detail.isRestored;
|
|
|
|
if (!isRestored) {
|
|
|
|
var parentId = null;
|
|
favoriteItems.render(view, Dashboard.getCurrentUserId(), parentId);
|
|
}
|
|
});
|
|
};
|
|
|
|
}); |