matrix-public-archive/shared/viewmodels/HomeserverSelectionModalCon...

19 lines
440 B
JavaScript
Raw Normal View History

'use strict';
const { ViewModel } = require('hydrogen-view-sdk');
class HomeserverSelectionModalContentViewModel extends ViewModel {
constructor(options) {
super(options);
const { onNewHomeserverAdded } = options;
this._onNewHomeserverAdded = onNewHomeserverAdded;
}
onNewHomeserverAdded(newHomeserver) {
this._onNewHomeserverAdded(newHomeserver);
}
}
module.exports = HomeserverSelectionModalContentViewModel;