Skip to content

Commit

Permalink
fix: Reuse centralized Toast Notifs component - EXO-67596
Browse files Browse the repository at this point in the history
  • Loading branch information
IlhemEssaadi committed Dec 7, 2023
1 parent d3a7153 commit b969e8b
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions src/main/frontend/vue-app/components/InvitePopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@
</div>
</v-btn>

<div id="vAlert">
<v-alert
v-if="alert"
type="success"
border="left"
colored-border
dismissible>
{{ textLinkMsg }}
</v-alert>
</div>

</v-app>
</template>
Expand All @@ -55,7 +45,6 @@ export default {
textLink: "Link copied to clipboard",
hoverMsg: "Copy meeting link to copyboard",
type:"",
alert: false
};
},
Expand All @@ -81,10 +70,8 @@ export default {
methods: {
displayMessage() {
this.alert = true;
this.message=this.textLinkMsg;
this.$root.$emit("alert-message", this.textLinkMsg, "success");
// eslint-disable-next-line no-magic-numbers
setTimeout(() => (this.alert = false), 5000);
const iframe = document.getElementById("jitsiConferenceFrame0");
iframe.contentWindow.document.getElementById("inputURL").select();
iframe.contentWindow.document.execCommand("copy");
Expand All @@ -93,14 +80,3 @@ export default {
};
</script>

<style lang="less" scoped>
@import "../../skin/less/variables.less";
#vAlert {
position: fixed;
bottom: 5%;
left: 2%;
background: none;
}
</style>

0 comments on commit b969e8b

Please sign in to comment.