mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Fixed some minor formatting issues
no issue - indented conditional template code - grouped tracked properties together
This commit is contained in:
parent
f25cc00236
commit
3a9209b6a8
@ -167,37 +167,38 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#if @payload.productButtonEnabled}}
|
||||
<div class="kg-settings-panel-control">
|
||||
<label class="kg-settings-panel-control-label" for="product-button-input">Button text</label>
|
||||
<div class="kg-settings-panel-control-input">
|
||||
<input
|
||||
type="text"
|
||||
class="gh-input"
|
||||
id="product-button-input"
|
||||
name="product-button"
|
||||
value={{@payload.productButton}}
|
||||
placeholder="Add button text"
|
||||
{{on "input" this.setProductButton}}
|
||||
{{on-key "Enter" (fn this.focusElement "#product-button-input")}}
|
||||
>
|
||||
<div class="kg-settings-panel-control">
|
||||
<label class="kg-settings-panel-control-label" for="product-button-input">Button text</label>
|
||||
<div class="kg-settings-panel-control-input">
|
||||
<input
|
||||
type="text"
|
||||
class="gh-input"
|
||||
id="product-button-input"
|
||||
name="product-button"
|
||||
value={{@payload.productButton}}
|
||||
placeholder="Add button text"
|
||||
{{on "input" this.setProductButton}}
|
||||
{{on-key "Enter" (fn this.focusElement "#product-button-input")}}
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="kg-settings-panel-control">
|
||||
<label class="kg-settings-panel-control-label" for="product-url-input">Button URL</label>
|
||||
<div class="kg-settings-panel-control-input">
|
||||
<input
|
||||
type="text"
|
||||
class="gh-input"
|
||||
id="product-url-input"
|
||||
name="product-url"
|
||||
value={{@payload.productUrl}}
|
||||
placeholder="Add URL"
|
||||
{{on "input" this.setProductUrl}}
|
||||
{{on-key "Enter" (fn this.focusElement "#product-url-input")}}
|
||||
>
|
||||
<div class="kg-settings-panel-control">
|
||||
<label class="kg-settings-panel-control-label" for="product-url-input">Button URL</label>
|
||||
<div class="kg-settings-panel-control-input">
|
||||
<input
|
||||
type="text"
|
||||
class="gh-input"
|
||||
id="product-url-input"
|
||||
name="product-url"
|
||||
value={{@payload.productUrl}}
|
||||
placeholder="Add URL"
|
||||
{{on "input" this.setProductUrl}}
|
||||
{{on-key "Enter" (fn this.focusElement "#product-url-input")}}
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</KoenigSettingsPanel>
|
||||
|
||||
|
@ -21,12 +21,12 @@ export default class KoenigCardProductComponent extends Component {
|
||||
@inject config;
|
||||
|
||||
@tracked files = null;
|
||||
imageExtensions = IMAGE_EXTENSIONS;
|
||||
imageMimeTypes = IMAGE_MIME_TYPES;
|
||||
|
||||
@tracked previewSrc = null;
|
||||
@tracked isDraggedOver = false;
|
||||
|
||||
imageExtensions = IMAGE_EXTENSIONS;
|
||||
imageMimeTypes = IMAGE_MIME_TYPES;
|
||||
|
||||
handlesDragDrop = true;
|
||||
|
||||
get isButtonIncomplete() {
|
||||
|
Loading…
Reference in New Issue
Block a user