♻️ Reverse disclaimer buttons order (cf. 2f9393e)

dev
KaKi87 2 years ago
parent 2cea26e564
commit 2689b32b69

@ -57,12 +57,13 @@ const getViews = screen => {
const disclaimerForm = form();
text({ content: `${name} v${version} | ${description}\n\nBy ${author.name} | ${homepage}\n\nDistributed under the ${license} licence.` });
const actions = flexContainer({ top: 6 }, disclaimerForm);
const submitButton = button({ content: 'Proceed' }, undefined, actions);
button({ content: 'Cancel' }, undefined, actions).on('press', reject);
const cancelButton = button({ content: 'Cancel' }, undefined, actions);
cancelButton.on('press', reject);
button({ content: 'Proceed' }, undefined, actions)
.on('press', () => disclaimerForm.submit());
disclaimerForm.on('submit', () => resolve());
submitButton.on('press', () => disclaimerForm.submit());
screen.render();
submitButton.focus();
cancelButton.focus();
}),
wrongPassword: quit => {
text(

Loading…
Cancel
Save