mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
see TODOs (stripe-modal.tsx, machines.js.erb)
This commit is contained in:
parent
5941446a72
commit
0d0bf473af
@ -2,7 +2,7 @@
|
||||
* This component is a "card" publicly presenting the details of a plan
|
||||
*/
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { react2angular } from 'react2angular';
|
||||
import moment from 'moment';
|
||||
|
@ -202,6 +202,7 @@ const StripeModal: React.FC<StripeModalProps> = ({ isOpen, toggleModal, afterSuc
|
||||
className="validate-btn">
|
||||
{t('app.shared.stripe.confirm_payment_of_', { AMOUNT: formatPrice(remainingPrice) })}
|
||||
</button>
|
||||
{/* TODO, add loader if submitState === true */}
|
||||
</StripeElements>}
|
||||
</FabModal>
|
||||
);
|
||||
|
@ -735,6 +735,19 @@ Application.Controllers.controller('ReserveMachineController', ['$scope', '$stat
|
||||
* @param user {Object} user associated with the slot
|
||||
*/
|
||||
const updateMachineSlot = function (slot, reservation, user) {
|
||||
/* TODO, FIXME
|
||||
machines.js.erb:741 Uncaught (in promise) TypeError: Cannot read property 'slots' of undefined
|
||||
at updateMachineSlot (machines.js.erb:741)
|
||||
at machines.js.erb:664
|
||||
at Object.forEach (angular.js:386)
|
||||
at Scope.$scope.afterPayment (machines.js.erb:652)
|
||||
at afterPayment (cart.js:884)
|
||||
at $scope.afterStripeSuccess (cart.js:338)
|
||||
at _callee$ (stripe-modal.tsx:145)
|
||||
at tryCatch (runtime.js:63)
|
||||
at Generator.invoke [as _invoke] (runtime.js:293)
|
||||
at Generator.next (runtime.js:118)
|
||||
*/
|
||||
angular.forEach(reservation.slots, function (s) {
|
||||
if (slot.start.isSame(s.start_at)) {
|
||||
slot.slot_id = s.id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user