|
|
|
@ -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(
|
|
|
|
|