1 line
983 B
JavaScript
1 line
983 B
JavaScript
|
|
import BaseTab from"./../modules/tabbedview/basetab.js";import UserPasswordController from"./../settings/userpasswordcontroller.js";import connectionManager from"./../modules/emby-apiclient/connectionmanager.js";function PasswordTab(view,params,options){BaseTab.apply(this,arguments);var apiClient=connectionManager.currentApiClient();this.userPasswordController=new UserPasswordController(view,params,apiClient)}Object.assign(PasswordTab.prototype,BaseTab.prototype),PasswordTab.prototype.onResume=function(options){BaseTab.prototype.onResume.apply(this,arguments),this.userPasswordController&&this.userPasswordController.resume(options)},PasswordTab.prototype.onPause=function(){BaseTab.prototype.onPause.apply(this,arguments),this.userPasswordController&&this.userPasswordController.pause()},PasswordTab.prototype.destroy=function(){BaseTab.prototype.destroy.apply(this,arguments),this.userPasswordController.destroy(),this.userPasswordController=null};export default PasswordTab;
|