Only allow admins to change room mode
This commit is contained in:
parent
31b7c4ed26
commit
cfc14f05a0
6 changed files with 90 additions and 48 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue