mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
Fixed incorrect "explicit this" for did-insert and will-destroy element modifiers
no issue - the "explicit this" codemod incorrectly added `this.` in front of the `{{did-insert}}` and `{{will-destroy}}` element modifiers
This commit is contained in:
parent
ac450612ed
commit
684ce495b4
|
@ -1,6 +1,6 @@
|
|||
<header
|
||||
{{this.did-insert (action "initScrollWatch")}}
|
||||
{{this.will-destroy (action "clearScrollWatch")}}
|
||||
{{did-insert (action "initScrollWatch")}}
|
||||
{{will-destroy (action "clearScrollWatch")}}
|
||||
...attributes
|
||||
>
|
||||
{{yield}}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<div class="modal-body modal-preview-email-content gh-pe-mobile-container" style="display: flex;justify-content: center;">
|
||||
<div class="gh-pe-mobile-bezel">
|
||||
<div class="gh-pe-mobile-screen">
|
||||
<iframe class="bn gh-pe-iframe" {{this.did-insert this.renderEmailPreview}}></iframe>
|
||||
<iframe class="bn gh-pe-iframe" {{did-insert this.renderEmailPreview}}></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -23,6 +23,6 @@
|
|||
|
||||
{{#if (eq this.type "desktop")}}
|
||||
<div class="modal-body modal-preview-email-content gh-pe-desktop-container">
|
||||
<iframe class="bn miw-100 gh-pe-iframe" style="height:100%;" {{this.did-insert this.renderEmailPreview}}></iframe>
|
||||
<iframe class="bn miw-100 gh-pe-iframe" style="height:100%;" {{did-insert this.renderEmailPreview}}></iframe>
|
||||
</div>
|
||||
{{/if}}
|
|
@ -1,4 +1,4 @@
|
|||
<div class="gh-view" {{this.did-insert (action "setMainClass" "gh-main-white" target=this.ui)}}>
|
||||
<div class="gh-view" {{did-insert (action "setMainClass" "gh-main-white" target=this.ui)}}>
|
||||
<div class="gh-content">
|
||||
{{gh-loading-spinner}}
|
||||
</div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<section class="gh-canvas" {{this.did-insert (action "setMainClass" "gh-main-primarybg" target=this.ui)}}>
|
||||
<section class="gh-canvas" {{did-insert (action "setMainClass" "gh-main-primarybg" target=this.ui)}}>
|
||||
<header class="gh-canvas-header post-header">
|
||||
<h2 class="gh-canvas-title" data-test-screen-title>Pages</h2>
|
||||
<section class="view-actions">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<section class="gh-canvas" {{this.did-insert (action "setMainClass" "gh-main-primarybg" target=this.ui)}}>
|
||||
<section class="gh-canvas" {{did-insert (action "setMainClass" "gh-main-primarybg" target=this.ui)}}>
|
||||
<header class="gh-canvas-header post-header">
|
||||
<h2 class="gh-canvas-title" data-test-screen-title>Posts</h2>
|
||||
<section class="view-actions">
|
||||
|
|
Loading…
Reference in a new issue