Merge pull request #2651 from alecmerdler/hide-markdown-view-while-editing

Hide Existing Markdown Content While Editing
This commit is contained in:
Alec Merdler 2017-05-18 11:44:08 -07:00 committed by GitHub
commit 93b51c3f4e

View file

@ -4,7 +4,7 @@
ng-if="$ctrl.canWrite && !$ctrl.isEditing"
ng-click="$ctrl.editContent()"
data-title="Edit {{ ::$ctrl.fieldTitle }}" data-placement="left" bs-tooltip></span>
<div ng-if="$ctrl.content">
<div ng-if="$ctrl.content && !$ctrl.isEditing">
<markdown-view content="$ctrl.content"></markdown-view>
</div>
<!-- Not set and can write -->