Skip to content

Commit

Permalink
Load public link in created instead of mounted
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Feb 10, 2022
1 parent 21f482c commit 322d199
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/web-app-files/src/views/PublicLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default {
return this.$gettext('Enter password for public link')
}
},
mounted() {
created() {
this.resolvePublicLink()
},
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 322d199

Please sign in to comment.