aboutsummaryrefslogtreecommitdiffstats
path: root/settings/src/components/prefixMixin.vue
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-05-25 15:52:17 +0200
committerJulius Härtl <jus@bitgrid.net>2018-06-06 11:40:09 +0200
commitd52aa55a4fd78605fd83fee20af9bca84331f6af (patch)
treec3a10910411aa7629be3140469c48739f9ab57e8 /settings/src/components/prefixMixin.vue
parentcd60e5b63406d4f23a8c04491cbdc57b47b972cb (diff)
downloadnextcloud-server-d52aa55a4fd78605fd83fee20af9bca84331f6af.tar.gz
nextcloud-server-d52aa55a4fd78605fd83fee20af9bca84331f6af.zip
Improve sidebar handling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings/src/components/prefixMixin.vue')
-rw-r--r--settings/src/components/prefixMixin.vue32
1 files changed, 32 insertions, 0 deletions
diff --git a/settings/src/components/prefixMixin.vue b/settings/src/components/prefixMixin.vue
new file mode 100644
index 00000000000..e2feb63276d
--- /dev/null
+++ b/settings/src/components/prefixMixin.vue
@@ -0,0 +1,32 @@
+<!--
+ - @copyright Copyright (c) 2018 Julius Härtl <jus@bitgrid.net>
+ -
+ - @author Julius Härtl <jus@bitgrid.net>
+ -
+ - @license GNU AGPL version 3 or any later version
+ -
+ - This program is free software: you can redistribute it and/or modify
+ - it under the terms of the GNU Affero General Public License as
+ - published by the Free Software Foundation, either version 3 of the
+ - License, or (at your option) any later version.
+ -
+ - This program is distributed in the hope that it will be useful,
+ - but WITHOUT ANY WARRANTY; without even the implied warranty of
+ - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ - GNU Affero General Public License for more details.
+ -
+ - You should have received a copy of the GNU Affero General Public License
+ - along with this program. If not, see <http://www.gnu.org/licenses/>.
+ -
+ -->
+
+<script>
+ export default {
+ name: 'prefixMixin',
+ methods: {
+ prefix (prefix, content) {
+ return prefix + '_' + content;
+ },
+ }
+ }
+</script> \ No newline at end of file