@@ -300,12 +300,6 @@ export default {
300300 name: " DepartmentPendingGroups" ,
301301 data : () => ({
302302 loading: false ,
303- headers: [
304- { text: " Program : Activity" , value: " program_branch" },
305- { text: " Position" , value: " position" },
306- { text: " Status" , value: " status" },
307- { text: " Authority Lines" , value: " authority_lines.length" },
308- ],
309303 page: {
310304 title: " Form As" ,
311305 },
@@ -356,6 +350,22 @@ export default {
356350 computed: {
357351 ... mapState (" home" , [" profile" ]),
358352
353+ headers () {
354+ if (this .item && this .item .status == " Archived" )
355+ return [
356+ { text: " Program : Activity" , value: " program_branch" },
357+ { text: " Position" , value: " position" },
358+ { text: " Authority Lines" , value: " authority_lines.length" },
359+ ];
360+
361+ return [
362+ { text: " Program : Activity" , value: " program_branch" },
363+ { text: " Position" , value: " position" },
364+ { text: " Status" , value: " status" },
365+ { text: " Authority Lines" , value: " authority_lines.length" },
366+ ];
367+ },
368+
359369 userIsSysAdmin () {
360370 return this .profile && this .profile .roles && this .profile .roles .includes (" System Admin" );
361371 },
@@ -529,7 +539,7 @@ export default {
529539 if (this .item .archive_date ) {
530540 return " On " + moment (this .item .archive_date ).format (" MMM D, YYYY @ h:mm a" );
531541 }
532- return " Date Not Recorded"
542+ return " Date Not Recorded" ;
533543 }
534544 return " " ;
535545 },
0 commit comments