Commit 9d8f7a0a authored by julienmege's avatar julienmege Committed by abirembaut

fix(rename) Disable preview if page name changed (#2426)

* fix(rename) Disable preview if page name changed

close [BS-18207](https://bonitasoft.atlassian.net/browse/BS-18207)
parent a3b56e5f
......@@ -34,7 +34,8 @@
<i class="ui-icon ui-export"></i>
</button>
</form>
<open-preview on-open-preview="vm.save(vm.page)" mode="{{vm.mode}}" artifact-id="vm.page.id" is-disabled="!formName.$valid"></open-preview>
<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>
<save-indicator class="EditorHeader-saveIndicator"></save-indicator>
</div>
<div class="EditorHeader-resolutions">
......
<button class="btn btn-bonita-primary"
id="preview"
uib-tooltip="{{ 'Preview' | translate }}"
uib-tooltip="{{ 'Changes need to be saved to enable the preview' | translate }}"
tooltip-enable="ctrl.isDisabled"
tooltip-placement="bottom"
tooltip-popup-delay="300"
ng-click="ctrl.openPreview()"
......
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