Change-Id: I99ae967ed8e2cd9cb5b0035c13901b71ae80faa1changes/15/28815/5
parent
022b9f27f1
commit
fe50cda4ee
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,33 @@
|
||||
<template>
|
||||
<q-inner-loading
|
||||
:visible="loading">
|
||||
<q-spinner-dots
|
||||
size="32px"
|
||||
color="white"
|
||||
/>
|
||||
</q-inner-loading>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
QSpinnerDots,
|
||||
QInnerLoading
|
||||
} from 'quasar-framework'
|
||||
export default {
|
||||
name: 'csc-object-spinner',
|
||||
data () {
|
||||
return {}
|
||||
},
|
||||
components: {
|
||||
QSpinnerDots,
|
||||
QInnerLoading
|
||||
},
|
||||
props: [
|
||||
'loading'
|
||||
]
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" rel="stylesheet/stylus">
|
||||
@import '../themes/quasar.variables.styl'
|
||||
</style>
|
||||
@ -0,0 +1,77 @@
|
||||
<template>
|
||||
<csc-dialog
|
||||
ref="dialogComp"
|
||||
:title="'Share conference'"
|
||||
:titleIcon="'link'"
|
||||
>
|
||||
<div
|
||||
slot="content"
|
||||
>
|
||||
<q-input
|
||||
ref="conferenceUrlInput"
|
||||
:value="conferenceUrl"
|
||||
dark
|
||||
readonly
|
||||
@focus="selectConferenceUrl"
|
||||
/>
|
||||
</div>
|
||||
<q-btn
|
||||
slot="actions"
|
||||
color="primary"
|
||||
flat
|
||||
icon="link"
|
||||
@click="copy"
|
||||
>
|
||||
Copy link
|
||||
</q-btn>
|
||||
</csc-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
QBtn,
|
||||
QInput
|
||||
} from 'quasar-framework'
|
||||
import CscDialog from '../../CscDialog'
|
||||
export default {
|
||||
name: 'csc-share-conference-dialog',
|
||||
data () {
|
||||
return {
|
||||
}
|
||||
},
|
||||
props: [
|
||||
'conferenceUrl'
|
||||
],
|
||||
components: {
|
||||
QBtn,
|
||||
QInput,
|
||||
CscDialog
|
||||
},
|
||||
mounted() {
|
||||
this.selectConferenceUrl();
|
||||
},
|
||||
methods: {
|
||||
open() {
|
||||
this.$refs.dialogComp.open();
|
||||
this.$nextTick(()=>{
|
||||
this.$refs.conferenceUrlInput.focus();
|
||||
});
|
||||
},
|
||||
close() {
|
||||
this.$refs.dialogComp.close();
|
||||
},
|
||||
copy() {
|
||||
this.$refs.conferenceUrlInput.select();
|
||||
document.execCommand('copy');
|
||||
this.close();
|
||||
},
|
||||
selectConferenceUrl() {
|
||||
this.$refs.conferenceUrlInput.select();
|
||||
}
|
||||
},
|
||||
computed: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" rel="stylesheet/stylus">
|
||||
</style>
|
||||
Loading…
Reference in new issue