-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redirect to private link after log in
- Loading branch information
Lukas Hirt
committed
Sep 5, 2019
1 parent
4855550
commit 128f9bd
Showing
6 changed files
with
58 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const state = { | ||
/** | ||
* Private link path in case user needs to log in first | ||
* @return {string} path to the file/folder | ||
*/ | ||
privateLinkPath: '' | ||
} | ||
|
||
const actions = { | ||
setPrivateLinkPath ({ commit }, path) { | ||
commit('SET_PRIVATE_LINK_PATH', path) | ||
} | ||
} | ||
|
||
const mutations = { | ||
SET_PRIVATE_LINK_PATH (state, path) { | ||
state.privateLinkPath = path | ||
} | ||
} | ||
|
||
const getters = { | ||
privateLinkPath: state => state.privateLinkPath | ||
} | ||
|
||
export default { | ||
state, | ||
actions, | ||
mutations, | ||
getters | ||
} |