* Show grade in project story.

This commit is contained in:
sunguangming
2024-04-18 11:31:32 +08:00
parent 706466d5c8
commit c0919ba4bf
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ window.renderCell = function(result, info)
if(story.parent > 0) if($.cookie.get('tab') == 'project') html += story.parentName + ' / ';
let gradeLabel = gradeGroup[story.type][story.grade];
if(!showGrade && story.grade < 2 && storyType == story.type) gradeLabel = '';
if(!showGrade && story.grade < 2 && storyType == story.type && tab == 'product') gradeLabel = '';
if(gradeLabel) html += "<span class='label gray-pale rounded-xl clip'>" + gradeLabel + "</span> ";
if(story.color) result[0].props.style = 'color: ' + story.color;
if(html) result.unshift({html});
+1
View File
@@ -19,6 +19,7 @@ jsVar('gradeGroup', $gradeGroup);
jsVar('showGrade', $showGrade);
jsVar('oldShowGrades', $showGrades);
jsVar('storyType', $storyType);
jsVar('tab', $app->tab);
$storyCommon = $storyType == 'requirement' ? $lang->URCommon : $lang->SRCommon;
$isProjectStory = $this->app->rawModule == 'projectstory';