From eda0f7a46720763ffc886deea34ea9a91c14b5fb Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sat, 20 May 2017 21:25:48 +0200 Subject: [PATCH] Hide new-proposal link for non-wallet users --- app/templates/index.hbs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/app/templates/index.hbs b/app/templates/index.hbs index 18a524d..656d766 100644 --- a/app/templates/index.hbs +++ b/app/templates/index.hbs @@ -23,9 +23,11 @@ confirmAction="confirmProposal" contractInteractionEnabled=contractInteractionEnabled}} -

- {{#link-to 'proposals.new'}}Create new proposal{{/link-to}} -

+ {{#if contractInteractionEnabled}} +

+ {{#link-to 'proposals.new'}}Create new proposal{{/link-to}} +

+ {{/if}} {{/if}} @@ -38,9 +40,11 @@ {{proposal-list proposals=proposalsClosedSorted confirmAction="confirmProposal"}} -

- {{#link-to 'proposals.new'}}Create new proposal{{/link-to}} -

+ {{#if contractInteractionEnabled}} +

+ {{#link-to 'proposals.new'}}Create new proposal{{/link-to}} +

+ {{/if}}