1
0
Fork 0
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:
Kevin Ansfield 2019-12-19 21:18:54 +00:00
parent ac450612ed
commit 684ce495b4
5 changed files with 7 additions and 7 deletions

View file

@ -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}}

View file

@ -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}}

View file

@ -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>

View file

@ -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">

View file

@ -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">