* Show grade in project story.
This commit is contained in:
@@ -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});
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user