Support "mirrors" array in the config file for link sharing
For issue #642
This commit is contained in:
parent
4648e4969c
commit
e3f7f1758f
9 changed files with 72 additions and 27 deletions
|
|
@ -65,7 +65,7 @@
|
|||
</v-row>
|
||||
</v-container>
|
||||
|
||||
<copy-link :locationLink="directMessageLink" >
|
||||
<copy-link :locationLink="directMessageLink" :allowMirrors="true" @mirror-change="(mirror) => currentMirror = mirror">
|
||||
<v-card-title class="h2">{{ $t("room_info.direct_link") }}</v-card-title>
|
||||
<v-card-text>{{ $t("room_info.direct_link_desc") }}</v-card-text>
|
||||
</copy-link>
|
||||
|
|
@ -297,7 +297,8 @@ export default {
|
|||
isAvatarLoaded: true,
|
||||
loadValue: 0,
|
||||
newPasswordHasError: false,
|
||||
notificationDialog: false
|
||||
notificationDialog: false,
|
||||
currentMirror: null
|
||||
};
|
||||
},
|
||||
|
||||
|
|
@ -306,7 +307,7 @@ export default {
|
|||
return this.$matrix.currentUser.user_id
|
||||
},
|
||||
directMessageLink() {
|
||||
return this.$router.getDMLink(this.$matrix.currentUser, this.$config);
|
||||
return this.$router.getDMLink(this.$matrix.currentUser, this.$config, this.currentMirror);
|
||||
},
|
||||
passwordsMatch() {
|
||||
return (
|
||||
|
|
@ -425,6 +426,7 @@ export default {
|
|||
if(this.globalNotification && this.windowNotificationPermission() !== 'granted') {
|
||||
this.onUpdateGlobalNotification(false);
|
||||
}
|
||||
this.currentMirror = null;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue