Remove mentions of Ethereum from UI and code, refactor wallet connect #214

Merged
raucao merged 7 commits from chore/remove_last_ethereum_bits into master 2023-08-14 15:53:44 +00:00
2 changed files with 9 additions and 14 deletions
Showing only changes of commit 0ecc4079c2 - Show all commits
+3 -6
View File
@@ -1,18 +1,15 @@
import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { alias } from '@ember/object/computed';
import { tracked } from '@glimmer/tracking';
import config from 'kredits-web/config/environment';
import { isAddress } from 'web3-utils';
export default class BudgetController extends Controller {
export default class AccountController extends Controller {
@service kredits;
@tracked accountAddress = null;
@alias('kredits.githubAccessToken') githubAccessToken;
get isValidEthAccount () {
return isAddress(this.accountAddress);
}
@@ -24,7 +21,7 @@ export default class BudgetController extends Controller {
@action
completeSignup () {
const payload = {
accessToken: this.githubAccessToken,
accessToken: this.kredits.githubAccessToken,
account: this.accountAddress
}
@@ -43,7 +40,7 @@ export default class BudgetController extends Controller {
} else {
console.log('[signup/account] Created contributor:', data);
this.githubAccessToken = null;
this.kredits.githubAccessToken = null;
this.accountAddress = null;
this.transitionToRoute('signup.complete');
+6 -8
View File
@@ -1,14 +1,12 @@
import Controller from '@ember/controller';
import { action } from '@ember/object';
import config from 'kredits-web/config/environment';
export default Controller.extend({
actions: {
connectGithub () {
window.location = config.githubConnectUrl;
}
export default class IndexController extends Controller {
@action
connectGithub () {
window.location = config.githubConnectUrl;
}
});
}