diff options
author | Joas Schilling <coding@schilljs.com> | 2022-04-26 14:51:31 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-04-26 14:51:31 +0300 |
commit | 759873b9484bd535d6fba0bbcb12cbafacafc01d (patch) | |
tree | 25bf0f3f969777c18891a1ae0ba1318d8f6ff12d | |
parent | 336cafd2190143d6c339319133249474255645ca (diff) |
Add a link to the notifications sound settings
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | src/components/SettingsDialog/SettingsDialog.vue | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/components/SettingsDialog/SettingsDialog.vue b/src/components/SettingsDialog/SettingsDialog.vue index 6dc398a98..12a8f85f6 100644 --- a/src/components/SettingsDialog/SettingsDialog.vue +++ b/src/components/SettingsDialog/SettingsDialog.vue @@ -62,6 +62,16 @@ @change="togglePlaySounds"> <label for="play_sounds">{{ t('spreed', 'Play sounds when participants join or leave a call') }}</label> <em>{{ t('spreed', 'Sounds can currently not be played in Safari browser and iPad and iPhone devices due to technical restrictions by the manufacturer.') }}</em> + + <Button type="tertiary" + @click="goToPersonalSettings"> + <template #icon> + <OpenInNew :size="20" + decorative + title="" /> + </template> + {{ t('spreed', 'Sounds for chat and call notifications can be adjusted in the personal settings.') }} + </Button> </AppSettingsSection> <AppSettingsSection :title="t('spreed', 'Keyboard shortcuts')"> <em>{{ t('spreed', 'Speed up your Talk experience with these quick shortcuts.') }}</em> @@ -125,13 +135,16 @@ </template> <script> +import { generateUrl } from '@nextcloud/router' import { getFilePickerBuilder, showError, showSuccess } from '@nextcloud/dialogs' import { PRIVACY } from '../../constants' import { subscribe, unsubscribe } from '@nextcloud/event-bus' import MediaDevicesPreview from '../MediaDevicesPreview' import AppSettingsDialog from '@nextcloud/vue/dist/Components/AppSettingsDialog' import AppSettingsSection from '@nextcloud/vue/dist/Components/AppSettingsSection' +import Button from '@nextcloud/vue/dist/Components/Button' import CheckboxRadioSwitch from '@nextcloud/vue/dist/Components/CheckboxRadioSwitch' +import OpenInNew from 'vue-material-design-icons/OpenInNew' export default { name: 'SettingsDialog', @@ -140,7 +153,9 @@ export default { MediaDevicesPreview, AppSettingsDialog, AppSettingsSection, + Button, CheckboxRadioSwitch, + OpenInNew, }, data() { @@ -251,6 +266,10 @@ export default { beforeDestroy() { unsubscribe('show-settings', this.handleShowSettings) }, + + goToPersonalSettings() { + window.location = generateUrl('/settings/user/notifications') + }, }, } </script> |