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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-10-04 01:30:50 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-10-07 10:40:58 +0300
commit843d799a2e2c884026883e3f41b81066801a877d (patch)
treeb427d0296556488e34e0892f01c858ed5294b954 /apps/files_sharing/src/views/SharingTab.vue
parent678ef8466d5d1788bab1cf66786e47515a1bcbd9 (diff)
Move Files Sidebar to proper javascript standard
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src/views/SharingTab.vue')
-rw-r--r--apps/files_sharing/src/views/SharingTab.vue35
1 files changed, 2 insertions, 33 deletions
diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue
index 40c8572912f..c92aac40d0a 100644
--- a/apps/files_sharing/src/views/SharingTab.vue
+++ b/apps/files_sharing/src/views/SharingTab.vue
@@ -21,10 +21,7 @@
-->
<template>
- <Tab :id="id"
- :icon="icon"
- :name="name"
- :class="{ 'icon-loading': loading }">
+ <div :class="{ 'icon-loading': loading }">
<!-- error message -->
<div v-if="error" class="emptycontent">
<div class="icon icon-error" />
@@ -84,7 +81,7 @@
<component :is="section($refs['section-'+index], fileInfo)" :file-info="fileInfo" />
</div>
</template>
- </Tab>
+ </div>
</template>
<script>
@@ -92,7 +89,6 @@ import { CollectionList } from 'nextcloud-vue-collections'
import { generateOcsUrl } from '@nextcloud/router'
import Avatar from '@nextcloud/vue/dist/Components/Avatar'
import axios from '@nextcloud/axios'
-import Tab from '@nextcloud/vue/dist/Components/AppSidebarTab'
import { shareWithTitle } from '../utils/SharedWithMe'
import Share from '../models/Share'
@@ -117,7 +113,6 @@ export default {
SharingInput,
SharingLinkList,
SharingList,
- Tab,
},
mixins: [ShareTypes],
@@ -134,9 +129,7 @@ export default {
return {
error: '',
expirationInterval: null,
- icon: 'icon-share',
loading: true,
- name: t('files_sharing', 'Sharing'),
// reshare Share object
reshare: null,
sharedWithMe: {},
@@ -148,26 +141,6 @@ export default {
computed: {
/**
- * Needed to differenciate the tabs
- * pulled from the AppSidebarTab component
- *
- * @returns {string}
- */
- id() {
- return 'sharing'
- },
-
- /**
- * Returns the current active tab
- * needed because AppSidebarTab also uses $parent.activeTab
- *
- * @returns {string}
- */
- activeTab() {
- return this.$parent.activeTab
- },
-
- /**
* Is this share shared with me?
*
* @returns {boolean}
@@ -341,7 +314,3 @@ export default {
},
}
</script>
-
-<style lang="scss" scoped>
-
-</style>