-
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
Added Url to name and default value to null
- Loading branch information
Lukas Hirt
committed
Sep 6, 2019
1 parent
55919fe
commit e422aa6
Showing
6 changed files
with
59 additions
and
16 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 | ||
*/ | ||
privateLinkUrlPath: null | ||
} | ||
|
||
const actions = { | ||
setPrivateLinkUrlPath ({ commit }, path) { | ||
commit('SET_PRIVATE_LINK_URL_PATH', path) | ||
} | ||
} | ||
|
||
const mutations = { | ||
SET_PRIVATE_LINK_URL_PATH (state, path) { | ||
state.privateLinkUrlPath = path | ||
} | ||
} | ||
|
||
const getters = { | ||
privateLinkUrlPath: state => state.privateLinkUrlPath | ||
} | ||
|
||
export default { | ||
state, | ||
actions, | ||
mutations, | ||
getters | ||
} |