mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
Fixed check for empty portal button icon
no issue - Members modal missed check for null portal button icon in initial state for dummy icons
This commit is contained in:
parent
9b196a6697
commit
dc82014283
@ -57,7 +57,9 @@ export default ModalComponent.extend({
|
|||||||
settingsParam.append('isMonthly', this.isMonthlyChecked);
|
settingsParam.append('isMonthly', this.isMonthlyChecked);
|
||||||
settingsParam.append('isYearly', this.isYearlyChecked);
|
settingsParam.append('isYearly', this.isYearlyChecked);
|
||||||
settingsParam.append('page', this.page);
|
settingsParam.append('page', this.page);
|
||||||
|
if (this.buttonIcon) {
|
||||||
settingsParam.append('buttonIcon', encodeURIComponent(this.buttonIcon));
|
settingsParam.append('buttonIcon', encodeURIComponent(this.buttonIcon));
|
||||||
|
}
|
||||||
settingsParam.append('signupButtonText', encodeURIComponent(this.signupButtonText));
|
settingsParam.append('signupButtonText', encodeURIComponent(this.signupButtonText));
|
||||||
if (this.settings.get('accentColor')) {
|
if (this.settings.get('accentColor')) {
|
||||||
settingsParam.append('accentColor', encodeURIComponent(`${this.settings.get('accentColor')}`));
|
settingsParam.append('accentColor', encodeURIComponent(`${this.settings.get('accentColor')}`));
|
||||||
@ -107,7 +109,8 @@ export default ModalComponent.extend({
|
|||||||
'https://raw.githubusercontent.com/leungwensen/svg-icon/master/dist/trimmed-svg/evil/user.svg'
|
'https://raw.githubusercontent.com/leungwensen/svg-icon/master/dist/trimmed-svg/evil/user.svg'
|
||||||
];
|
];
|
||||||
this.iconExtensions = ICON_EXTENSIONS;
|
this.iconExtensions = ICON_EXTENSIONS;
|
||||||
if (!this.settings.get('portalButtonIcon').includes('githubusercontent')) {
|
const portalButtonIcon = this.settings.get('portalButtonIcon') || '';
|
||||||
|
if (portalButtonIcon && !portalButtonIcon.includes('githubusercontent')) {
|
||||||
return this.set('customIcon', this.settings.get('portalButtonIcon'));
|
return this.set('customIcon', this.settings.get('portalButtonIcon'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user