Add "link copied!" toast to room info
This commit is contained in:
parent
73f7a0d4d8
commit
b7d280f675
2 changed files with 24 additions and 17 deletions
|
|
@ -724,20 +724,6 @@ $admin-fg: white;
|
||||||
border: 1px solid #808080 !important;
|
border: 1px solid #808080 !important;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-copied {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 10px;
|
|
||||||
left: 20%;
|
|
||||||
right: 20%;
|
|
||||||
background-color: #888888;
|
|
||||||
height: 50px;
|
|
||||||
border-radius: 25px;
|
|
||||||
color: white;
|
|
||||||
text-align: center;
|
|
||||||
vertical-align: middle;
|
|
||||||
padding-top: 10px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.room-link .v-input__slot::before {
|
.room-link .v-input__slot::before {
|
||||||
|
|
@ -750,4 +736,18 @@ $admin-fg: white;
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
margin: 20px;
|
margin: 20px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-copied {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 10px;
|
||||||
|
left: 20%;
|
||||||
|
right: 20%;
|
||||||
|
background-color: #888888;
|
||||||
|
height: 50px;
|
||||||
|
border-radius: 25px;
|
||||||
|
color: white;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
@ -60,6 +60,7 @@
|
||||||
type="text"
|
type="text"
|
||||||
@click:append="copyRoomLink"
|
@click:append="copyRoomLink"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
|
<div v-if="publicRoomLinkCopied" class="link-copied">Link copied!</div>
|
||||||
</v-radio-group>
|
</v-radio-group>
|
||||||
|
|
||||||
<!-- <div v-if="anyoneCanJoin">
|
<!-- <div v-if="anyoneCanJoin">
|
||||||
|
|
@ -183,6 +184,7 @@ export default {
|
||||||
expandedMembers: [],
|
expandedMembers: [],
|
||||||
buildVersion: "",
|
buildVersion: "",
|
||||||
updatingJoinRule: false, // Flag if we are processing update curerntly
|
updatingJoinRule: false, // Flag if we are processing update curerntly
|
||||||
|
publicRoomLinkCopied: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -311,10 +313,15 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
copyRoomLink() {
|
copyRoomLink() {
|
||||||
|
const self = this;
|
||||||
this.$copyText(this.publicRoomLink).then(
|
this.$copyText(this.publicRoomLink).then(
|
||||||
function (e) {
|
function (ignored) {
|
||||||
console.log(e);
|
// Success!
|
||||||
},
|
self.publicRoomLinkCopied = true;
|
||||||
|
setInterval(() => {
|
||||||
|
// Hide again
|
||||||
|
self.publicRoomLinkCopied = false;
|
||||||
|
}, 3000); },
|
||||||
function (e) {
|
function (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue