]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(ShareEntryLinkList): Append new links to the end of list
authorfenn-cs <fenn25.fn@gmail.com>
Wed, 30 Oct 2024 13:49:43 +0000 (14:49 +0100)
committerLouis Chemineau <louis@chmn.me>
Thu, 31 Oct 2024 13:44:38 +0000 (14:44 +0100)
Currently new shares are added to beginning of the share list in the UI

messing up the ordering with the original (first) looking like the most

recent and the most recent looking like the original share. This error

disappears on refresh.

Resolves : https://github.com/nextcloud/server/issues/48415

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
apps/files_sharing/src/views/SharingLinkList.vue

index 462d38fe8ad9339a2e14ac9c7f76e0fa21e4a0cc..9b23bc4285c9ef1394ee7658fc67aabe43b08339 100644 (file)
@@ -118,7 +118,7 @@ export default {
                 */
                addShare(share, resolve) {
                        // eslint-disable-next-line vue/no-mutating-props
-                       this.shares.unshift(share)
+                       this.shares.push(share)
                        this.awaitForShare(share, resolve)
                },