From 322d1996e58e0a614d79b546d0f9d4b970bbcafa Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Thu, 10 Feb 2022 22:08:13 +0100 Subject: [PATCH] Load public link in created instead of mounted --- packages/web-app-files/src/views/PublicLink.vue | 2 +- .../webUISharingPublicManagement/sharingPublicSession.feature | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web-app-files/src/views/PublicLink.vue b/packages/web-app-files/src/views/PublicLink.vue index b745f5da12f..c6bd6a47383 100644 --- a/packages/web-app-files/src/views/PublicLink.vue +++ b/packages/web-app-files/src/views/PublicLink.vue @@ -88,7 +88,7 @@ export default { return this.$gettext('Enter password for public link') } }, - mounted() { + created() { this.resolvePublicLink() }, methods: { diff --git a/tests/acceptance/features/webUISharingPublicManagement/sharingPublicSession.feature b/tests/acceptance/features/webUISharingPublicManagement/sharingPublicSession.feature index 883f132529a..181088bec94 100644 --- a/tests/acceptance/features/webUISharingPublicManagement/sharingPublicSession.feature +++ b/tests/acceptance/features/webUISharingPublicManagement/sharingPublicSession.feature @@ -37,8 +37,8 @@ Feature: Session storage for public link And user "Alice" has created file "simple-folder/lorem.txt" in the server And user "Alice" has shared folder "simple-folder" with link with "read" permissions and password "pass123" in the server When the public uses the webUI to access the last public link created by user "Alice" with password "pass123" - And user "Alice" changes the password of last public link to "newpass" using the Sharing API in the server Then file "lorem.txt" should be listed on the webUI + And user "Alice" changes the password of last public link to "newpass" using the Sharing API in the server When the user reloads the current page of the webUI Then the password input for the public link should appear on the webUI When the user accesses the public link with password "newpass" using the webUI @@ -49,8 +49,8 @@ Feature: Session storage for public link Given user "Alice" has created file "lorem.txt" in the server And user "Alice" has shared folder "lorem.txt" with link with "read" permissions and password "pass123" in the server When the public uses the webUI to access the last public link created by user "Alice" with password "pass123" - And user "Alice" changes the password of last public link to "newpass" using the Sharing API in the server Then file "lorem.txt" should be listed on the webUI + And user "Alice" changes the password of last public link to "newpass" using the Sharing API in the server When the user reloads the current page of the webUI Then the password input for the public link should appear on the webUI When the user accesses the public link with password "newpass" using the webUI