mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-09-02 19:43:13 +03:00
28 lines
598 B
JavaScript
28 lines
598 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();
|
|
}
|
|
};
|
|
}
|