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

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-10-27 00:51:56 +0300
committerdartcafe <github@dartcafe.de>2020-10-27 00:51:56 +0300
commitad4e3b6038a1014af020f00f0cfb90f7ea1a91da (patch)
tree189de66d6119c9b04e61f7f77bccd4574ca01283 /src/js/views
parent327fccc552d1b0ecb8baaf3e2fb66813b236d82c (diff)
replace linkifyjs with linkify-urls
Diffstat (limited to 'src/js/views')
-rw-r--r--src/js/views/Vote.vue6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/js/views/Vote.vue b/src/js/views/Vote.vue
index b406137b..9526b77f 100644
--- a/src/js/views/Vote.vue
+++ b/src/js/views/Vote.vue
@@ -94,7 +94,7 @@
</template>
<script>
-import linkifyStr from 'linkifyjs/string'
+import linkifyUrls from 'linkify-urls'
import { mapState, mapGetters } from 'vuex'
import { Actions, ActionButton, AppContent, EmptyContent } from '@nextcloud/vue'
import { getCurrentUser } from '@nextcloud/auth'
@@ -185,7 +185,9 @@ export default {
},
linkifyDescription() {
- return linkifyStr(this.poll.description)
+ return linkifyUrls(this.poll.description, {
+ attributes: { class: 'linkified' },
+ })
},
windowTitle() {