mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 14:43:08 +03:00
Enable the product card button when editing it
refs https://github.com/TryGhost/Team/issues/1245 - When editing the button text or url, the button is enabled
This commit is contained in:
parent
1ba546c4cd
commit
9a94dbe000
@ -115,11 +115,17 @@ export default class KoenigCardProductComponent extends Component {
|
||||
@action
|
||||
setProductUrl(event) {
|
||||
this._updatePayloadAttr('productUrl', event.target.value);
|
||||
if (!this.args.payload.productButtonEnabled) {
|
||||
this._updatePayloadAttr('productButtonEnabled', true);
|
||||
}
|
||||
}
|
||||
|
||||
@action
|
||||
setProductButton(event) {
|
||||
this._updatePayloadAttr('productButton', event.target.value);
|
||||
if (!this.args.payload.productButtonEnabled) {
|
||||
this._updatePayloadAttr('productButtonEnabled', true);
|
||||
}
|
||||
}
|
||||
|
||||
@action
|
||||
|
Loading…
Reference in New Issue
Block a user