fix(articles): delete button not required in create new article

feat (articles): For New Article, delete button not required. if try to delete New Article that is not persisted to database than it create server error
This commit is contained in:
Liran Tal
2016-09-17 01:43:31 +03:00
committed by GitHub

View File

@@ -3,7 +3,7 @@
<h1>{{vm.article._id ? 'Edit Article' : 'New Article'}}</h1>
</div>
<div class="pull-right">
<a class="btn btn-primary" ng-click="vm.remove()">
<a ng-show="vm.article._id" class="btn btn-primary" ng-click="vm.remove()">
<i class="glyphicon glyphicon-trash"></i>
</a>
</div>