Commit 269cea10 authored by benjaminparisel's avatar benjaminparisel Committed by julienmege

defect(preview): Preview button must be enable if name doesnt change

* change name of page
* Press ctrl Z
* Preview button is enable

Close [BS-18027](https://bonitasoft.atlassian.net/browse/BS-18027)
parent 20d61c92
......@@ -35,7 +35,7 @@
</button>
</form>
<open-preview on-open-preview="vm.save(vm.page)" mode="{{vm.mode}}" artifact-id="vm.page.id"
is-disabled="!formName.$valid || formName.$dirty"></open-preview>
is-disabled="!formName.$valid || vm.isPageDirty(vm.page)"></open-preview>
<save-indicator class="EditorHeader-saveIndicator"></save-indicator>
</div>
<div class="EditorHeader-resolutions">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment