-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ResourceDetails component to GenericSpace for individual (public)…
… shares
- Loading branch information
1 parent
b9a3e39
commit a165f15
Showing
3 changed files
with
97 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Enhancement: Open individually shared file in dedicated view | ||
|
||
We have added functionality to open a single, publicly shared file in a different view (instead of showing it in a table). | ||
|
||
https://github.com/owncloud/web/issues/8445 | ||
https://github.com/owncloud/web/pull/8440 | ||
https://github.com/owncloud/web/pull/8446 |
50 changes: 50 additions & 0 deletions
50
packages/web-app-files/src/components/FilesList/ResourceDetails.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<template> | ||
<div class="file-without-app"> | ||
<file-info /> | ||
<file-details :class="'oc-mb'" /> | ||
<file-actions /> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { computed, defineComponent, PropType } from 'vue' | ||
import { Resource, SpaceResource } from 'web-client/src/helpers' | ||
import FileActions from '../SideBar/Actions/FileActions.vue' | ||
import FileDetails from '../SideBar/Details/FileDetails.vue' | ||
import FileInfo from '../SideBar/FileInfo.vue' | ||
export default defineComponent({ | ||
components: { | ||
FileActions, | ||
FileDetails, | ||
FileInfo | ||
}, | ||
provide() { | ||
return { | ||
resource: computed(() => this.singleResource), | ||
space: computed(() => this.space) | ||
} | ||
}, | ||
props: { | ||
singleResource: { | ||
type: Object as PropType<Resource>, | ||
required: false, | ||
default: null | ||
}, | ||
space: { | ||
type: Object as PropType<SpaceResource>, | ||
required: false, | ||
default: null | ||
} | ||
} | ||
}) | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.file-without-app { | ||
width: 50%; | ||
margin: 0 auto; | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters