Skip to content

Commit

Permalink
wip: add screen share testing button to header
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
  • Loading branch information
ShGKme committed Apr 5, 2024
1 parent cd27f68 commit 804a3b1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/talk/renderer/DesktopHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@

<div class="spacer" />

<div class="header__item">
<NcButton :aria-label="t('talk_desktop', 'Screen share testing')"
type="tertiary-no-background"
class="header__button"
@click="testGetDesktopMediaSource">
<template #icon>
<MdiMonitorShare />
</template>
</NcButton>
</div>

<div class="header__item">
<NcButton :aria-label="t('talk_desktop', 'Search')"
type="tertiary-no-background"
Expand Down Expand Up @@ -67,6 +78,7 @@
<script>
import MdiBell from 'vue-material-design-icons/Bell.vue'
import MdiMagnify from 'vue-material-design-icons/Magnify.vue'
import MdiMonitorShare from 'vue-material-design-icons/MonitorShare.vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import UserMenu from './components/UserMenu.vue'
import { appData } from '../../app/AppData.js'
Expand All @@ -79,6 +91,7 @@ export default {
components: {
MdiBell,
MdiMagnify,
MdiMonitorShare,
NcButton,
UserMenu,
},
Expand All @@ -97,6 +110,10 @@ export default {
showNotSupportedAlert(feature) {
alert(`Unfortunately, ${feature} is not currently supported by Nextcloud Talk Desktop`)
},

testGetDesktopMediaSource() {
window.OCA.Talk.Desktop.getDesktopMediaSource()
},
},
}
</script>
Expand Down

0 comments on commit 804a3b1

Please sign in to comment.