mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-20 00:37:26 +00:00
Tweak UI for selecting an existing card at Checkout
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
Darkswarm.controller "PaymentCtrl", ($scope, $timeout, savedCreditCards, Dates) ->
|
||||
angular.extend(this, new FieldsetMixin($scope))
|
||||
defaultCard = [ {id: null, formatted: t("new_credit_card")} ]
|
||||
$scope.savedCreditCards = defaultCard.concat savedCreditCards if savedCreditCards
|
||||
$scope.selected_card = null
|
||||
|
||||
|
||||
$scope.savedCreditCards = savedCreditCards
|
||||
$scope.name = "payment"
|
||||
|
||||
$scope.months = Dates.months
|
||||
|
||||
$scope.years = Dates.years
|
||||
|
||||
$scope.secrets.card_month = "1"
|
||||
$scope.secrets.card_year = moment().year()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user