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

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-05-10 22:19:07 +0300
committernpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>2020-05-10 22:27:24 +0300
commit6ff0a213721c1c14fb2a25fa2668b6efeed44635 (patch)
treefad9f946e4b24e32de3e8ef460909bfbbd2a60de /src/Components
parent592eecf609ab63a2bfbb76adececa6035b6dafb6 (diff)
Use @nextcloud/router
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'src/Components')
-rw-r--r--src/Components/Notification.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Components/Notification.vue b/src/Components/Notification.vue
index 9389353..5140f4e 100644
--- a/src/Components/Notification.vue
+++ b/src/Components/Notification.vue
@@ -30,6 +30,7 @@ import Action from './Action'
import parser from '../richObjectStringParser'
import escapeHTML from 'escape-html'
import moment from '@nextcloud/moment'
+import { generateOcsUrl } from '@nextcloud/router'
export default {
name: 'Notification',
@@ -215,7 +216,7 @@ export default {
onDismissNotification: function() {
axios
- .delete(OC.linkToOCS('apps/notifications/api/v2', 2) + 'notifications/' + this.notificationId)
+ .delete(generateOcsUrl('apps/notifications/api/v2', 2) + 'notifications/' + this.notificationId)
.then(() => {
// this._$el.fadeOut(OC.menuSpeed)
this.$emit('remove', this.index)