Only allow admins to change room mode

This commit is contained in:
N Pex 2023-08-07 14:13:35 +00:00
parent 31b7c4ed26
commit cfc14f05a0
6 changed files with 90 additions and 48 deletions

View file

@ -1,6 +1,8 @@
import utils from "../plugins/utils";
import roomTypeMixin from "./roomTypeMixin";
export default {
mixins: [roomTypeMixin],
data() {
return {
roomJoinRule: null,
@ -59,7 +61,7 @@ export default {
publicRoomLink() {
if (this.room && this.roomJoinRule == "public") {
return this.$router.getRoomLink(
this.room.getCanonicalAlias(), this.room.roomId, this.room.name, utils.roomDisplayTypeToQueryParam(this.room)
this.room.getCanonicalAlias(), this.room.roomId, this.room.name, utils.roomDisplayTypeToQueryParam(this.room, this.roomDisplayType)
);
}
return null;