pass options to parent in LoginViewModel
This commit is contained in:
parent
f56b96b0ff
commit
c55a197303
1 changed files with 3 additions and 2 deletions
|
@ -2,8 +2,9 @@ import {ViewModel} from "./ViewModel.js";
|
|||
import {SessionLoadViewModel} from "./SessionLoadViewModel.js";
|
||||
|
||||
export class LoginViewModel extends ViewModel {
|
||||
constructor({sessionCallback, defaultHomeServer, createSessionContainer}) {
|
||||
super();
|
||||
constructor(options) {
|
||||
super(options);
|
||||
const {sessionCallback, defaultHomeServer, createSessionContainer} = options;
|
||||
this._createSessionContainer = createSessionContainer;
|
||||
this._sessionCallback = sessionCallback;
|
||||
this._defaultHomeServer = defaultHomeServer;
|
||||
|
|
Reference in a new issue