hide assignment published state unless draft state enabled
hide assignment published state unless draft state enabled

fixes CNVS-7638

test plan:
- disable draft state
- go to an assignment edit page
- it should not have the "not published" or cog at the top

Change-Id: Ie2b70d6987e12797858ee62499420478d6bb5e81
Reviewed-on: https://gerrit.instructure.com/23518
QA-Review: Clare Strong <40d6bb3ed7fef516c73274131d5a837c16de74fd@instructure.com>
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
Reviewed-by: Cameron Matheson <1d572acbfa68c7c6e541c7b840d6b622e5c0dc91@instructure.com>
Product-Review: Simon Williams <088e16a1019277b15d58faf0541e11910eb756f6@instructure.com>

greyhwndz/canvas-lms,ShreniiNepal/shrenii_lmp,jay3126/canvas-lms,Rvor/canvas-lms,fronteerio/canvas-lms,djbender/canvas-lms,matematikk-mooc/canvas-lms,wimemx/Canvas,Unow/canvas-lms,antoniuslin/canvas-lms,shidao-fm/canvas-lms,dgynn/canvas-lms,shidao-fm/canvas-lms,matematikk-mooc/canvas-lms,grahamb/canvas-lms,wye0220/shindig-canvas,roxolan/canvas-lms,jay3126/canvas-lms,grahamb/canvas-lms,SwinburneOnline/canvas-lms,sdeleon28/canvas-lms,HotChalk/canvas-lms,samuels410/greatlakes-lms,Unow/canvas-lms,snehakachroo1/LSI_replica,leftplusrightllc/canvas-lms,eCNAP/CANVAS,djbender/canvas-lms,skmezanul/canvas-lms,sfu/canvas-lms,greyhwndz/canvas-lms,venturehive/canvas-lms,loganrun/pincan,tgroshon/canvas-lms,jay3126/canvas-lms,HotChalk/canvas-lms,wrdsb/canvas-lms,grahamb/canvas-lms,redconfetti/canvas-lms,efrj/canvas-lms,eCNAP/CANVAS,juoni/canvas-lms,merichar/canvas-lms,HotChalk/canvas-lms,arrivu/hoodemo,kyroskoh/canvas-lms,sdeleon28/canvas-lms,Rvor/canvas-lms,sdeleon28/canvas-lms,Jyaasa/canvas-lms,tgroshon/canvas-lms,snehakachroo1/LSI_replica,arrivu/qibla-ecampus,landonwilkins/canvas-lms,sfu/canvas-lms,arrivu/qibla-ecampus,roxolan/canvas-lms,skmezanul/canvas-lms,shidao-fm/canvas-lms,venturehive/canvas-lms,djbender/canvas-lms,wye0220/shindig-canvas,eCNAP/CANVAS,va7map/canvas-lms,ShreniiNepal/shrenii_lmp,samuels410/greatlakes-lms,ShreniiNepal/shrenii_lmp,antoniuslin/canvas-lms,wrdsb/canvas-lms,juoni/canvas-lms,Unow/canvas-lms,arrivu/arrivu-lms,narigone/canvas,roxolan/canvas-lms,merichar/canvas-lms,efrj/canvas-lms,skmezanul/canvas-lms,whalejasmine/canvas-lms,AndranikMarkosyan/lms,dgynn/canvas-lms,whalejasmine/canvas-lms,sfu/canvas-lms,wye0220/shindig-canvas,snehakachroo1/LSI_replica,whalejasmine/canvas-lms,arrivu/jigsaw-lms,narigone/canvas,wrdsb/canvas-lms,leftplusrightllc/canvas-lms,AndranikMarkosyan/lms,roxolan/canvas-lms,samuels410/greatlakes-lms,venturehive/canvas-lms,jay3126/canvas-lms,kyroskoh/canvas-lms,kyroskoh/canvas-lms,matematikk-mooc/canvas-lms,matematikk-mooc/canvas-lms,gbleydon/canvas-lms,juoni/canvas-lms,Jyaasa/canvas-lms,loganrun/pincan,antoniuslin/canvas-lms,loganrun/pincan,eCNAP/CANVAS,SwinburneOnline/canvas-lms,arrivu/jigsaw-lms,landonwilkins/canvas-lms,usmschuck/canvas,ShreniiNepal/shrenii_lmp,grahamb/canvas-lms,efrj/canvas-lms,venturehive/canvas-lms,usmschuck/canvas,Rvor/canvas-lms,va7map/canvas-lms,wrdsb/canvas-lms,va7map/canvas-lms,sfu/canvas-lms,whalejasmine/canvas-lms,AndranikMarkosyan/lms,sfu/canvas-lms,grahamb/canvas-lms,merichar/canvas-lms,HotChalk/canvas-lms,samuels410/greatlakes-lms,instructure/canvas-lms,skmezanul/canvas-lms,instructure/canvas-lms,redconfetti/canvas-lms,instructure/canvas-lms,SwinburneOnline/canvas-lms,juoni/canvas-lms,SwinburneOnline/canvas-lms,dgynn/canvas-lms,utkarshx/canvas-lms,arrivu/arrivu-lms,redconfetti/canvas-lms,arrivu/hoodemo,landonwilkins/canvas-lms,va7map/canvas-lms,sfu/canvas-lms,narigone/canvas,usmschuck/canvas,AndranikMarkosyan/lms,greyhwndz/canvas-lms,antoniuslin/canvas-lms,narigone/canvas,gbleydon/canvas-lms,arrivu/jigsaw-lms,kyroskoh/canvas-lms,instructure/canvas-lms,instructure/canvas-lms,Rvor/canvas-lms,fronteerio/canvas-lms,sfu/canvas-lms,instructure/canvas-lms,dgynn/canvas-lms,leftplusrightllc/canvas-lms,arrivu/hoodemo,gbleydon/canvas-lms,Jyaasa/canvas-lms,usmschuck/canvas,efrj/canvas-lms,Jyaasa/canvas-lms,tgroshon/canvas-lms,redconfetti/canvas-lms,utkarshx/canvas-lms,sdeleon28/canvas-lms,leftplusrightllc/canvas-lms,djbender/canvas-lms,landonwilkins/canvas-lms,instructure/canvas-lms,arrivu/qibla-ecampus,fronteerio/canvas-lms,greyhwndz/canvas-lms,arrivu/arrivu-lms,utkarshx/canvas-lms,shidao-fm/canvas-lms,tgroshon/canvas-lms,utkarshx/canvas-lms,fronteerio/canvas-lms,wimemx/Canvas,wimemx/Canvas,snehakachroo1/LSI_replica