Github user corneadoug commented on the issue:

    https://github.com/apache/zeppelin/pull/979
  
    I would like to suggest a different approach:
    Not showing the delete button if the paragraph is the last one.
    
    It is also quite easy to do:
    Just need to add `ng-hide="$last"` to the remove link in 
paragraph-control.html
    
    <img width="439" alt="screen shot 2016-06-10 at 3 43 12 pm" 
src="https://cloud.githubusercontent.com/assets/710411/15956251/291a9b92-2f22-11e6-8b35-25e9aa662e7c.png";>
    
    Since angular has both `$first` and `$last`, we could even remove 'Move Up' 
or 'Move Down' option depending on whether the paragraph is the first or the 
last.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to