Make member private

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-06-18 13:12:20 +05:30
parent 7e72d57be7
commit ddb7a16fb8

View file

@ -3,10 +3,14 @@ import {ViewModel} from "../../ViewModel.js";
export class MemberTileViewModel extends ViewModel { export class MemberTileViewModel extends ViewModel {
constructor(options) { constructor(options) {
super(options); super(options);
this.member = options.member; this._member = options.member;
} }
get displayName() { get displayName() {
return this.member.displayName; return this._member.displayName;
}
get userId() {
return this._member.userId;
} }
} }