Skip to content

Commit d1b95cf

Browse files
author
Ives van Hoorne
committed
Fix deployment modal and payment updating
1 parent dfb3e22 commit d1b95cf

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/app/src/app/store/modules/deployment/sequences.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import { getZeitUserDetails } from '../../sequences';
77
export const openDeployModal = [
88
set(state`currentModal`, 'deployment'),
99
getZeitUserDetails,
10+
set(state`deployment.url`, null),
1011
];
1112

1213
export const deploy = [
13-
set(state`deployment.url`, null),
1414
set(state`deployment.deploying`, true),
1515
actions.createZip,
1616
actions.loadZip,

packages/app/src/app/store/modules/preferences/sequences.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@ export const getPaymentDetails = [
6161
export const updatePaymentDetails = [
6262
set(state`preferences.isLoadingPaymentDetails`, true),
6363
actions.updatePaymentDetails,
64+
set(state`preferences.paymentDetails`, props`data`),
6465
set(state`preferences.isLoadingPaymentDetails`, false),
6566
];

packages/app/src/app/store/providers/Browser.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@ export default Provider({
3535
window.open(url, '_blank');
3636
},
3737
openPopup(url, name) {
38-
return window.open(
38+
const popup = window.open(
3939
url,
4040
name,
4141
`scrollbars=no,toolbar=no,location=no,titlebar=no,directories=no,status=no,menubar=no, ${getPopupDimensions()}`
4242
);
43+
return {
44+
close: () => popup.close(),
45+
};
4346
},
4447
waitForMessage(type) {
4548
return new Promise(resolve => {

0 commit comments

Comments
 (0)