Skip to content

Commit

Permalink
fix the name vs id bug
Browse files Browse the repository at this point in the history
  • Loading branch information
amdomanska committed Oct 1, 2024
1 parent 5c6a9a5 commit 45ac7a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portality/static/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ doaj.dashboard.renderGroupInfo = function (data) {
if (current_user.role.includes("admin")) {
// Ready applications by editor
statisticsFrag += `<h4 class="label label--secondary">Editor's <span class="progress-bar__bar--ready label" style="padding: .5em; color: #FFF; display: unset;">Ready</span> Applications: `;
statisticsFrag += `<span class="label tag" style="margin-left: .5em;">${historicalNumbers.editor.name}</span> <span class="tag tag--tertiary">${historicalNumbers.editor.count}</span></h4>`;
statisticsFrag += `<span class="label tag" style="margin-left: .5em;">${historicalNumbers.editor.id}</span> <span class="tag tag--tertiary">${historicalNumbers.editor.count}</span></h4>`;
}

// Completed applications by associated editor
if (historicalNumbers.associate_editors.length) {
statisticsFrag += `<h4 class="label label--secondary">Applications <span class="progress-bar__bar--completed label label--secondary" style="padding: .5em; display: unset;">Completed</span> by associated editors</h4>`;
statisticsFrag += `<ul class="inlined-list">`;
for (let associateEditor of historicalNumbers.associate_editors) {
statisticsFrag += `<li><span class="label tag">${associateEditor.name}</span> <span class="tag tag--tertiary">${associateEditor.count}</span></span>`;
statisticsFrag += `<li><span class="label tag">${associateEditor.id}</span> <span class="tag tag--tertiary">${associateEditor.count}</span></span>`;
}

statisticsFrag += `</ul>`
Expand Down

0 comments on commit 45ac7a2

Please sign in to comment.