From 8e45a30b6c0464427a104f2e1712eb6a73871dd9 Mon Sep 17 00:00:00 2001 From: octavioamu Date: Wed, 7 Aug 2019 19:51:57 -0300 Subject: [PATCH] fix workplan in permissionless --- app/assets/v2/js/pages/bounty_details.js | 5 +++-- app/assets/v2/js/shared.js | 2 +- app/dashboard/templates/bounty/details.html | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/assets/v2/js/pages/bounty_details.js b/app/assets/v2/js/pages/bounty_details.js index 7c81ab885ec..f5bc210e828 100644 --- a/app/assets/v2/js/pages/bounty_details.js +++ b/app/assets/v2/js/pages/bounty_details.js @@ -20,7 +20,7 @@ var gitcoin_ize = function(key, val) { if (!_truthy(val)) { return [ null, null ]; } - return [ key, '' + val.replace('@', '') + '' ]; + return [ key, '' + val.replace('@', '') + '' ]; }; var email_ize = function(key, val) { @@ -1576,7 +1576,8 @@ const process_activities = function(result, bounty_activities) { token_value_time_peg_new: new_bounty.token_value_time_peg, token_name: result['token_name'], to_username: to_username, - kudos: kudos + kudos: kudos, + permission_type: result['permission_type'] }); }); diff --git a/app/assets/v2/js/shared.js b/app/assets/v2/js/shared.js index 03ae492cc33..d976cc045c0 100644 --- a/app/assets/v2/js/shared.js +++ b/app/assets/v2/js/shared.js @@ -388,7 +388,7 @@ var pull_interest_list = function(bounty_pk, callback) { }; var profileHtml = function(handle, name) { - return '' + (name ? name : handle) + ''; }; diff --git a/app/dashboard/templates/bounty/details.html b/app/dashboard/templates/bounty/details.html index 07b40645e6b..19ced004c96 100644 --- a/app/dashboard/templates/bounty/details.html +++ b/app/dashboard/templates/bounty/details.html @@ -402,7 +402,7 @@
{% trans "Funder" %}
[[:age]]
- [[if issue_message && activity_type == 'worker_applied']] + [[if issue_message && activity_type == 'worker_applied' || issue_message && permission_type == 'permissionless' && activity_type == 'start_work' ]]

Work Plan: [[:issue_message.issue_message]]

[[/if]]