Skip to content

Commit

Permalink
Fixing teh url.
Browse files Browse the repository at this point in the history
  • Loading branch information
mansoor-sajjad committed Nov 21, 2023
1 parent 8b9073b commit 10add96
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/actions/SuppliersActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ SuppliersActions.uploadFiles = (files, providerId) => async (
) => {
dispatch(sendData(0, types.UPDATED_FILE_UPLOAD_PROGRESS));

console.log('uploadFiles - Files to upload', files);

const url = `${window.config.timetableAdminBaseUrl}${providerId}/files`;

var data = new FormData();
Expand Down Expand Up @@ -187,15 +185,13 @@ SuppliersActions.uploadFiles = (files, providerId) => async (
});
};

SuppliersActions.uploadTariffZonesFiles = (files, providerId) => async (
SuppliersActions.uploadTariffZonesFiles = (files, provider) => async (
dispatch,
getState
) => {
dispatch(sendData(0, types.UPDATED_TARIFF_ZONE_FILE_UPLOAD_PROGRESS));

console.log('uploadTariffZonesFiles - Files to upload', files);

const url = `${window.config.tariffZonesUrl}SOF/files`;
const url = `${window.config.tariffZonesUrl}${provider.chouetteInfo.xmlns}/files`;

var data = new FormData();

Expand Down
16 changes: 16 additions & 0 deletions src/app/components/Header.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Licensed under the EUPL, Version 1.2 or – as soon they will be approved by
* the European Commission - subsequent versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*
*/

import React from 'react';
import { connect } from 'react-redux';
import AppBar from 'material-ui/AppBar';
Expand Down

0 comments on commit 10add96

Please sign in to comment.