Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-04-29 12:02:13 +0300
committerJoas Schilling <coding@schilljs.com>2022-04-29 12:02:13 +0300
commit4bfc3a530e96956f451cd2a6c97ec903f6c4ed58 (patch)
tree9e973337574ab1e2bcf5960ad7ff0b41d37f96ba
parent51f2959db96294e6b1240f4a3ea4eb9b99dc1265 (diff)
Use a normal link and open in new tab by default
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--src/components/SettingsDialog/SettingsDialog.vue27
1 files changed, 10 insertions, 17 deletions
diff --git a/src/components/SettingsDialog/SettingsDialog.vue b/src/components/SettingsDialog/SettingsDialog.vue
index 12a8f85f6..e5f695f36 100644
--- a/src/components/SettingsDialog/SettingsDialog.vue
+++ b/src/components/SettingsDialog/SettingsDialog.vue
@@ -63,15 +63,12 @@
<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>
+ <a :href="settingsUrl"
+ target="_blank"
+ rel="noreferrer nofollow"
+ class="external">
+ {{ t('spreed', 'Sounds for chat and call notifications can be adjusted in the personal settings.') }} ↗
+ </a>
</AppSettingsSection>
<AppSettingsSection :title="t('spreed', 'Keyboard shortcuts')">
<em>{{ t('spreed', 'Speed up your Talk experience with these quick shortcuts.') }}</em>
@@ -142,9 +139,7 @@ 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',
@@ -153,9 +148,7 @@ export default {
MediaDevicesPreview,
AppSettingsDialog,
AppSettingsSection,
- Button,
CheckboxRadioSwitch,
- OpenInNew,
},
data() {
@@ -195,6 +188,10 @@ export default {
readStatusPrivacy() {
return this.$store.getters.getReadStatusPrivacy()
},
+
+ settingsUrl() {
+ return generateUrl('/settings/user/notifications')
+ },
},
mounted() {
@@ -266,10 +263,6 @@ export default {
beforeDestroy() {
unsubscribe('show-settings', this.handleShowSettings)
},
-
- goToPersonalSettings() {
- window.location = generateUrl('/settings/user/notifications')
- },
},
}
</script>