aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/components/SvgFilterMixin.vue
blob: 004ab7b1857f2ed7673ba603f9373454d2d2fadc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!--
  - SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  - SPDX-License-Identifier: AGPL-3.0-or-later
-->

<script>
export default {
	name: 'SvgFilterMixin',
	data() {
		return {
			filterId: '',
		}
	},
	computed: {
		filterUrl() {
			return `url(#${this.filterId})`
		},
	},
	mounted() {
		this.filterId = 'invertIconApps-' + Math.random().toString(36).substring(2)
	},
}
</script>