mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(files): fileid attribute
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
parent
ea9099a72f
commit
425932c770
3 changed files with 6 additions and 6 deletions
|
|
@ -173,7 +173,7 @@ export default Vue.extend({
|
|||
|
||||
onToggleAll(selected) {
|
||||
if (selected) {
|
||||
const selection = this.nodes.map(node => node.attributes.fileid.toString())
|
||||
const selection = this.nodes.map(node => node.fileid.toString())
|
||||
logger.debug('Added all nodes to selection', { selection })
|
||||
this.selectionStore.setLastIndex(null)
|
||||
this.selectionStore.set(selection)
|
||||
|
|
|
|||
|
|
@ -268,16 +268,16 @@ export default Vue.extend({
|
|||
this.filesStore.updateNodes(contents)
|
||||
|
||||
// Define current directory children
|
||||
folder._children = contents.map(node => node.attributes.fileid)
|
||||
folder._children = contents.map(node => node.fileid)
|
||||
|
||||
// If we're in the root dir, define the root
|
||||
if (dir === '/') {
|
||||
this.filesStore.setRoot({ service: currentView.id, root: folder })
|
||||
} else
|
||||
// Otherwise, add the folder to the store
|
||||
if (folder.attributes.fileid) {
|
||||
if (folder.fileid) {
|
||||
this.filesStore.updateNodes([folder])
|
||||
this.pathsStore.addPath({ service: currentView.id, fileid: folder.attributes.fileid, path: dir })
|
||||
this.pathsStore.addPath({ service: currentView.id, fileid: folder.fileid, path: dir })
|
||||
} else {
|
||||
// If we're here, the view API messed up
|
||||
logger.error('Invalid root folder returned', { dir, folder, currentView })
|
||||
|
|
@ -286,7 +286,7 @@ export default Vue.extend({
|
|||
// Update paths store
|
||||
const folders = contents.filter(node => node.type === 'folder')
|
||||
folders.forEach(node => {
|
||||
this.pathsStore.addPath({ service: currentView.id, fileid: node.attributes.fileid, path: join(dir, node.basename) })
|
||||
this.pathsStore.addPath({ service: currentView.id, fileid: node.fileid, path: join(dir, node.basename) })
|
||||
})
|
||||
} catch (error) {
|
||||
logger.error('Error while fetching content', { error })
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
:title="child.name"
|
||||
:to="generateToNavigation(child)">
|
||||
<!-- Sanitized icon as svg if provided -->
|
||||
<NcIconSvgWrapper v-if="view.icon" slot="icon" :svg="view.icon" />
|
||||
<NcIconSvgWrapper v-if="child.icon" slot="icon" :svg="child.icon" />
|
||||
</NcAppNavigationItem>
|
||||
</NcAppNavigationItem>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in a new issue