-
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.
Merge pull request #8446 from pascalwengerter/feature/8445
[full-ci] Show single (publicly) shared file in DetailsView
- Loading branch information
Showing
32 changed files
with
376 additions
and
157 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 |
44 changes: 44 additions & 0 deletions
44
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,44 @@ | ||
<template> | ||
<div class="resource-details oc-flex oc-flex-column oc-flex-middle"> | ||
<div class="oc-width-1-3@l oc-width-1-2@m oc-width-3-4"> | ||
<file-info /> | ||
<file-details class="oc-mb" /> | ||
<file-actions /> | ||
</div> | ||
</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> |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.