Hide modal footer when not needed