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

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-01-07 18:40:29 +0300
committernpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>2020-01-07 18:57:28 +0300
commitaf5df363170c940ec1e5ddf32ceaf3cd70bfeff8 (patch)
tree4cb10bec37d46f1b27639ab1e2842d209ac017c4 /src
parentaa3a5cbfd65724a41dfbe1d24889dcb20d8c7693 (diff)
Fix viewer list
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/components/File.vue6
-rw-r--r--src/components/VirtualGrid.vue1
-rw-r--r--src/views/Albums.vue5
-rw-r--r--src/views/Tags.vue5
4 files changed, 14 insertions, 3 deletions
diff --git a/src/components/File.vue b/src/components/File.vue
index 3552b1e4..9a7cd8b9 100644
--- a/src/components/File.vue
+++ b/src/components/File.vue
@@ -78,6 +78,10 @@ export default {
type: String,
required: true,
},
+ list: {
+ type: Array,
+ required: true,
+ },
},
data() {
@@ -111,7 +115,7 @@ export default {
methods: {
openViewer() {
- OCA.Viewer.open(this.filename)
+ OCA.Viewer.open(this.filename, this.list)
},
onLoad() {
this.loaded = true
diff --git a/src/components/VirtualGrid.vue b/src/components/VirtualGrid.vue
index 971dc587..2374f86d 100644
--- a/src/components/VirtualGrid.vue
+++ b/src/components/VirtualGrid.vue
@@ -15,6 +15,7 @@
:key="item.fileid"
:ref="`item-${index}`"
:class="`row-${getRowNumber(index)}`"
+ :list="list"
v-bind="props(item)" />
<!-- next page loading indicator -->
diff --git a/src/views/Albums.vue b/src/views/Albums.vue
index 3465cbec..41456dc4 100644
--- a/src/views/Albums.vue
+++ b/src/views/Albums.vue
@@ -48,7 +48,10 @@
:key="dir.fileid"
v-bind="dir"
:show-shared="showShared" />
- <File v-for="file in fileList" :key="file.fileid" v-bind="file" />
+ <File v-for="file in fileList"
+ :key="file.fileid"
+ :list="fileList"
+ v-bind="file" />
</template>
</Grid>
</template>
diff --git a/src/views/Tags.vue b/src/views/Tags.vue
index b61223a1..10b1bbd5 100644
--- a/src/views/Tags.vue
+++ b/src/views/Tags.vue
@@ -52,7 +52,10 @@
</template>
</EmptyContent>
- <File v-for="file in fileList" :key="file.fileid" v-bind="file" />
+ <File v-for="file in fileList"
+ :key="file.fileid"
+ :list="fileList"
+ v-bind="file" />
</template>
</Grid>
</template>