summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/redux/actions/portfolios.js
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-web/opendc-web-ui/src/redux/actions/portfolios.js')
-rw-r--r--opendc-web/opendc-web-ui/src/redux/actions/portfolios.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/opendc-web/opendc-web-ui/src/redux/actions/portfolios.js b/opendc-web/opendc-web-ui/src/redux/actions/portfolios.js
index d37886d8..923cd217 100644
--- a/opendc-web/opendc-web-ui/src/redux/actions/portfolios.js
+++ b/opendc-web/opendc-web-ui/src/redux/actions/portfolios.js
@@ -2,11 +2,11 @@ export const ADD_PORTFOLIO = 'ADD_PORTFOLIO'
export const UPDATE_PORTFOLIO = 'UPDATE_PORTFOLIO'
export const DELETE_PORTFOLIO = 'DELETE_PORTFOLIO'
export const OPEN_PORTFOLIO_SUCCEEDED = 'OPEN_PORTFOLIO_SUCCEEDED'
-export const SET_CURRENT_PORTFOLIO = 'SET_CURRENT_PORTFOLIO'
-export function addPortfolio(portfolio) {
+export function addPortfolio(projectId, portfolio) {
return {
type: ADD_PORTFOLIO,
+ projectId,
portfolio,
}
}
@@ -32,10 +32,3 @@ export function openPortfolioSucceeded(projectId, portfolioId) {
portfolioId,
}
}
-
-export function setCurrentPortfolio(portfolioId) {
- return {
- type: SET_CURRENT_PORTFOLIO,
- portfolioId,
- }
-}