fix: always show title for revision previews

This commit is contained in:
Baptiste Grob
2020-10-07 11:19:25 +02:00
parent 51d57d85d8
commit 2f720d39f0

View File

@@ -16,13 +16,14 @@
a.sk-a.info.close-button( a.sk-a.info.close-button(
ng-click="ctrl.dismiss(); $event.stopPropagation()" ng-click="ctrl.dismiss(); $event.stopPropagation()"
) Close ) Close
.sk-panel-content.selectable(ng-if="!ctrl.state.editor") .sk-panel-content.selectable
.sk-h2 {{ctrl.content.title}} .sk-h2 {{ctrl.content.title}}
p.normal.sk-p( p.normal.sk-p(
style="white-space: pre-wrap; font-size: 16px;" style="white-space: pre-wrap; font-size: 16px;"
) {{ctrl.content.text}} ng-if="!ctrl.state.editor"
component-view.component-view( ) {{ctrl.content.text}}
ng-if="ctrl.state.editor", component-view.component-view(
template-component="ctrl.state.editor", ng-if="ctrl.state.editor",
application='ctrl.application' template-component="ctrl.state.editor",
) application='ctrl.application'
)