}
.bpmn-sidebar {
height: 100%;
+ width: 320px;
.properties-panel {
&, .bpp-properties-panel {
height: 100%;
--- /dev/null
+import { SET_ACTIVITIES_LIST } from './activitiesConstants';
+
+export const setActivitiesList = payload => ({
+ type: SET_ACTIVITIES_LIST,
+ payload
+});
--- /dev/null
+/*
+* Copyright © 2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+ * http://www.apache.org/licenses/LICENSE-2.0
+*
+ * Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+const mockActivities = {
+ results: []
+};
+
+export default {
+ fetchActivities: () => {
+ return Promise.resolve(mockActivities);
+ }
+};
import { showErrorModalAction } from '../../../shared/modal/modalWrapperActions';
import { getComposition } from './compositionSelectors';
import { getWorkflowName } from '../../workflow/workflowSelectors';
+import { activitiesSelector } from 'features/activities/activitiesSelectors';
function mapStateToProps(state) {
return {
composition: getComposition(state),
- name: getWorkflowName(state)
+ name: getWorkflowName(state),
+ activities: activitiesSelector(state)
};
}
import overviewApi from '../workflow/overview/overviewApi';
import { versionListFetchAction } from '../workflow/overview/overviewConstansts';
import { updateComposition } from 'features/version/composition/compositionActions';
+import activitiesApi from 'features/activities/activitiesApi';
+import { setActivitiesList } from 'features/activities/activitiesActions';
function* fetchVersion(action) {
try {
action.payload
);
}
+ const activitiesList = yield call(activitiesApi.fetchActivities);
yield all([
put(setWorkflowVersionAction(rest)),
put(setInputsOutputs({ inputs, outputs })),
- put(updateComposition(composition))
+ put(updateComposition(composition)),
+ put(setActivitiesList(activitiesList.results))
]);
} catch (error) {
yield put(genericNetworkErrorAction(error));