From 494b5d9bdd71c2257d4fab4e25b2a90c8b7cf1d1 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 5 Sep 2019 11:53:20 +0200 Subject: [PATCH] Use configured IPFS gateway URL for button --- app/controllers/dashboard/contributions/show.js | 12 ++++++++++++ app/templates/dashboard/contributions/show.hbs | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 app/controllers/dashboard/contributions/show.js diff --git a/app/controllers/dashboard/contributions/show.js b/app/controllers/dashboard/contributions/show.js new file mode 100644 index 0000000..ef7f280 --- /dev/null +++ b/app/controllers/dashboard/contributions/show.js @@ -0,0 +1,12 @@ + +import Controller from '@ember/controller'; +import { computed } from '@ember/object'; +import config from 'kredits-web/config/environment'; + +export default Controller.extend({ + + ipfsGatewayUrl: computed(function() { + return config.ipfs.gatewayUrl; + }).volatile() + +}); diff --git a/app/templates/dashboard/contributions/show.hbs b/app/templates/dashboard/contributions/show.hbs index 3dab7ec..27d6307 100644 --- a/app/templates/dashboard/contributions/show.hbs +++ b/app/templates/dashboard/contributions/show.hbs @@ -42,7 +42,7 @@ kredits will be issued.

- {{link-to "Re-submit contribution" "signup" class="button small green"}}. + {{link-to "Re-submit contribution …" "signup" class="button small green"}}.

{{/if}} @@ -51,7 +51,7 @@

{{#if model.ipfsHash}} - Inspect IPFS data