From f9f0d368868037bf5aee722f59724a8ca27b1d38 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Fri, 21 May 2021 08:55:00 +0200 Subject: [PATCH] Add missing `this.` prefixes to the templates --- addon/templates/components/basic-dialog.hbs | 38 +++++++------- .../templates/components/in-place-dialog.hbs | 2 +- addon/templates/components/liquid-dialog.hbs | 34 ++++++------- .../components/liquid-tether-dialog.hbs | 28 +++++------ addon/templates/components/modal-dialog.hbs | 50 +++++++++---------- addon/templates/components/tether-dialog.hbs | 26 +++++----- 6 files changed, 89 insertions(+), 89 deletions(-) diff --git a/addon/templates/components/basic-dialog.hbs b/addon/templates/components/basic-dialog.hbs index 011126ea..5e8a4e64 100644 --- a/addon/templates/components/basic-dialog.hbs +++ b/addon/templates/components/basic-dialog.hbs @@ -1,45 +1,45 @@ -{{#ember-wormhole to=destinationElementId}} - {{#if isOverlaySibling}} -
- {{#if hasOverlay}} +{{#ember-wormhole to=this.destinationElementId}} + {{#if this.isOverlaySibling}} +
+ {{#if this.hasOverlay}}
{{/if}} {{#ember-modal-dialog-positioned-container - class=containerClassNamesString - targetAttachment=targetAttachment - target=legacyTarget + class=this.containerClassNamesString + targetAttachment=this.targetAttachment + target=this.legacyTarget }} {{yield}} {{/ember-modal-dialog-positioned-container}}
{{else}} -
- {{#if hasOverlay}} +
+ {{#if this.hasOverlay}}
{{#ember-modal-dialog-positioned-container - class=containerClassNamesString - targetAttachment=targetAttachment - target=legacyTarget + class=this.containerClassNamesString + targetAttachment=this.targetAttachment + target=this.legacyTarget }} {{yield}} {{/ember-modal-dialog-positioned-container}}
{{else}} {{#ember-modal-dialog-positioned-container - class=containerClassNamesString - targetAttachment=targetAttachment - target=legacyTarget + class=this.containerClassNamesString + targetAttachment=this.targetAttachment + target=this.legacyTarget }} {{yield}} {{/ember-modal-dialog-positioned-container}} diff --git a/addon/templates/components/in-place-dialog.hbs b/addon/templates/components/in-place-dialog.hbs index 735d9b2c..a8825013 100644 --- a/addon/templates/components/in-place-dialog.hbs +++ b/addon/templates/components/in-place-dialog.hbs @@ -1,5 +1,5 @@
{{yield}}
diff --git a/addon/templates/components/liquid-dialog.hbs b/addon/templates/components/liquid-dialog.hbs index 21360445..46ad5682 100644 --- a/addon/templates/components/liquid-dialog.hbs +++ b/addon/templates/components/liquid-dialog.hbs @@ -1,43 +1,43 @@ -{{#if isOverlaySibling}} +{{#if this.isOverlaySibling}} {{#liquid-wormhole - stack=stack - value=value - class=(concat "liquid-dialog-container " wrapperClassNamesString " " wrapperClass) + stack=this.stack + value=this.value + class=(concat "liquid-dialog-container " this.wrapperClassNamesString " " this.wrapperClass) }} -
- {{#if hasOverlay}} +
+ {{#if this.hasOverlay}}
{{/if}} -
+
{{yield}}
{{/liquid-wormhole}} {{else}} {{#liquid-wormhole - stack=stack - value=value - class=(concat "liquid-dialog-container " wrapperClassNamesString " " wrapperClass) + stack=this.stack + value=this.value + class=(concat "liquid-dialog-container " this.wrapperClassNamesString " " this.wrapperClass) }} - {{#if hasOverlay}} + {{#if this.hasOverlay}}
-
+
{{yield}}
{{else}} -
+
{{yield}}
{{/if}} diff --git a/addon/templates/components/liquid-tether-dialog.hbs b/addon/templates/components/liquid-tether-dialog.hbs index a4fb8ae9..93ef4cbb 100644 --- a/addon/templates/components/liquid-tether-dialog.hbs +++ b/addon/templates/components/liquid-tether-dialog.hbs @@ -1,11 +1,11 @@ -{{#if hasOverlay}} +{{#if this.hasOverlay}} {{#liquid-wormhole stack="modal-overlay" class="liquid-dialog-container" }}
@@ -13,17 +13,17 @@ {{/liquid-wormhole}} {{/if}} {{#liquid-tether - class=containerClassNamesString - target=tetherTarget - attachment=attachment - targetAttachment=targetAttachment - targetModifier=targetModifier - classPrefix=tetherClassPrefix - offset=offset - targetOffset=targetOffset - constraints=constraints - stack=stack - value=value + class=this.containerClassNamesString + target=this.tetherTarget + attachment=this.attachment + targetAttachment=this.targetAttachment + targetModifier=this.targetModifier + classPrefix=this.tetherClassPrefix + offset=this.offset + targetOffset=this.targetOffset + constraints=this.constraints + stack=this.stack + value=this.value }} {{yield}} {{/liquid-tether}} diff --git a/addon/templates/components/modal-dialog.hbs b/addon/templates/components/modal-dialog.hbs index 756707f9..6210c7fc 100644 --- a/addon/templates/components/modal-dialog.hbs +++ b/addon/templates/components/modal-dialog.hbs @@ -1,29 +1,29 @@ {{#component - modalDialogComponentName - wrapperClass=wrapperClass - wrapperClassNames=wrapperClassNames - overlayClass=overlayClass - overlayClassNames=overlayClassNames - containerClass=containerClass - containerClassNames=containerClassNames - hasOverlay=hasOverlay - translucentOverlay=translucentOverlay - clickOutsideToClose=clickOutsideToClose - destinationElementId=destinationElementId - overlayPosition=overlayPosition - tetherTarget=tetherTarget - legacyTarget=target - attachment=attachment - targetAttachment=targetAttachment - targetModifier=targetModifier - targetOffset=targetOffset - offset=offset - tetherClassPrefix=tetherClassPrefix - constraints=constraints - attachmentClass=attachmentClass - targetAttachmentClass=targetAttachmentClass - stack=stack - value=value + this.modalDialogComponentName + wrapperClass=this.wrapperClass + wrapperClassNames=this.wrapperClassNames + overlayClass=this.overlayClass + overlayClassNames=this.overlayClassNames + containerClass=this.containerClass + containerClassNames=this.containerClassNames + hasOverlay=this.hasOverlay + translucentOverlay=this.translucentOverlay + clickOutsideToClose=this.clickOutsideToClose + destinationElementId=this.destinationElementId + overlayPosition=this.overlayPosition + tetherTarget=this.tetherTarget + legacyTarget=this.target + attachment=this.attachment + targetAttachment=this.targetAttachment + targetModifier=this.targetModifier + targetOffset=this.targetOffset + offset=this.offset + tetherClassPrefix=this.tetherClassPrefix + constraints=this.constraints + attachmentClass=this.attachmentClass + targetAttachmentClass=this.targetAttachmentClass + stack=this.stack + value=this.value onClickOverlay=(action "onClickOverlay") onClose=(action "onClose") }} diff --git a/addon/templates/components/tether-dialog.hbs b/addon/templates/components/tether-dialog.hbs index 6ff1a55a..91c2c55b 100644 --- a/addon/templates/components/tether-dialog.hbs +++ b/addon/templates/components/tether-dialog.hbs @@ -1,8 +1,8 @@ -{{#if hasOverlay}} - {{#ember-wormhole to=destinationElementId}} +{{#if this.hasOverlay}} + {{#ember-wormhole to=this.destinationElementId}}
@@ -10,15 +10,15 @@ {{/ember-wormhole}} {{/if}} {{#ember-tether - class=containerClassNamesString - target=tetherTarget - attachment=attachment - targetAttachment=targetAttachment - targetModifier=targetModifier - classPrefix=tetherClassPrefix - offset=offset - targetOffset=targetOffset - constraints=constraints + class=this.containerClassNamesString + target=this.tetherTarget + attachment=this.attachment + targetAttachment=this.targetAttachment + targetModifier=this.targetModifier + classPrefix=this.tetherClassPrefix + offset=this.offset + targetOffset=this.targetOffset + constraints=this.constraints }} {{yield}} {{/ember-tether}}