From 22300c2980acaeecf499b551be7aec17dd542ab5 Mon Sep 17 00:00:00 2001
From: Sebastian Kippe
Date: Mon, 11 May 2020 10:06:12 +0200
Subject: [PATCH] Fix actions, etc.
---
app/components/add-contribution/component.js | 4 +++-
app/components/add-contribution/template.hbs | 2 +-
app/components/add-contributor/component.js | 12 +++++++++---
app/components/add-contributor/template.hbs | 2 +-
app/components/contribution-list/component.js | 10 ++++------
app/components/contribution-list/template.hbs | 12 ++++++------
app/components/contributor-list/template.hbs | 2 +-
app/components/topbar-account-panel/template.hbs | 4 ++--
app/templates/dashboard/contributors/show.hbs | 2 +-
app/templates/signup/eth-account.hbs | 2 +-
app/templates/signup/index.hbs | 2 +-
11 files changed, 30 insertions(+), 24 deletions(-)
diff --git a/app/components/add-contribution/component.js b/app/components/add-contribution/component.js
index 19247a8..56de353 100644
--- a/app/components/add-contribution/component.js
+++ b/app/components/add-contribution/component.js
@@ -45,7 +45,9 @@ export default Component.extend({
actions: {
- submit () {
+ submit (evt) {
+ evt.preventDefault();
+
if (!this.isValid) {
alert('Invalid data. Please review and try again.');
return;
diff --git a/app/components/add-contribution/template.hbs b/app/components/add-contribution/template.hbs
index 05fd22e..ab7b930 100644
--- a/app/components/add-contribution/template.hbs
+++ b/app/components/add-contribution/template.hbs
@@ -1,4 +1,4 @@
-
@@ -32,8 +32,8 @@
{{#each this.contributionsFiltered as |contribution|}}
+ {{action "openContributionDetails" contribution}}
+ class="{{if (eq contribution.id @selectedContributionId) " selected"}}">
({{contribution.kind}})
@@ -45,9 +45,9 @@
{{#unless contribution.vetoed}}
{{#unless (is-confirmed-contribution contribution)}}
-
+ {{input type="button" class="button small danger" value="veto"
+ click=(action "veto" contribution.id)
+ disabled=contribution.hasPendingChanges}}
{{/unless}}
{{/unless}}
diff --git a/app/components/contributor-list/template.hbs b/app/components/contributor-list/template.hbs
index 95ec449..5149035 100644
--- a/app/components/contributor-list/template.hbs
+++ b/app/components/contributor-list/template.hbs
@@ -1,7 +1,7 @@
{{#each @contributorList as |c|}}
{{c.contributor.name}}
diff --git a/app/components/topbar-account-panel/template.hbs b/app/components/topbar-account-panel/template.hbs
index f4d8d28..1c113cf 100644
--- a/app/components/topbar-account-panel/template.hbs
+++ b/app/components/topbar-account-panel/template.hbs
@@ -9,9 +9,9 @@
{{/if}}
{{else}}
Anonymous
- Sign up
+ Sign up
{{#if this.showConnectButton}}
- Connect account
+ Connect account
{{/if}}
{{/if}}
{{/if}}
diff --git a/app/templates/dashboard/contributors/show.hbs b/app/templates/dashboard/contributors/show.hbs
index 241de86..4686f70 100644
--- a/app/templates/dashboard/contributors/show.hbs
+++ b/app/templates/dashboard/contributors/show.hbs
@@ -10,7 +10,7 @@
{{#each this.model.accounts as |account|}}
-
+
{{/each}}
{{#if this.model.url}}
diff --git a/app/templates/signup/eth-account.hbs b/app/templates/signup/eth-account.hbs
index 7f100e9..d5091c3 100644
--- a/app/templates/signup/eth-account.hbs
+++ b/app/templates/signup/eth-account.hbs
@@ -16,7 +16,7 @@
Complete my profile
diff --git a/app/templates/signup/index.hbs b/app/templates/signup/index.hbs
index 036384d..5d68d22 100644
--- a/app/templates/signup/index.hbs
+++ b/app/templates/signup/index.hbs
@@ -12,7 +12,7 @@
connecting one of the following accounts:
-
+
Connect GitHub