mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
27 lines
604 B
JavaScript
27 lines
604 B
JavaScript
import Guide from '../../components/guide/guide';
|
|
|
|
export default function (view, params, tabContent) {
|
|
let guideInstance;
|
|
const self = this;
|
|
|
|
self.renderTab = function () {
|
|
if (!guideInstance) {
|
|
guideInstance = new Guide({
|
|
element: tabContent,
|
|
serverId: ApiClient.serverId()
|
|
});
|
|
}
|
|
};
|
|
|
|
self.onShow = function () {
|
|
if (guideInstance) {
|
|
guideInstance.resume();
|
|
}
|
|
};
|
|
|
|
self.onHide = function () {
|
|
if (guideInstance) {
|
|
guideInstance.pause();
|
|
}
|
|
};
|
|
}
|