Skip to content

Commit ec592c3

Browse files
committed
TD-5658-Empty framework/group validation added to show/hide buttons
1 parent f5e7b41 commit ec592c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DigitalLearningSolutions.Web/Views/Frameworks/Developer/Framework.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</div>
4545
<div class="nhsuk-grid-column-one-third">
4646
@*<a class="nhsuk-button nhsuk-button--secondary">Preview</a>*@
47-
@if (Model.DetailFramework.UserRole > 1)
47+
@if ((Model.FrameworkCompetencyGroups?.Any() == true || Model.FrameworkCompetencies?.Any() == true) && Model.DetailFramework.UserRole > 1)
4848
{
4949
if (Model.DetailFramework.PublishStatusID == 2)
5050
{

0 commit comments

Comments
 (0)