0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed visibility property on Tiers

refs https://github.com/TryGhost/Team/issues/2078

This property should be settable to either 'public' or 'none'
This commit is contained in:
Fabien "egg" O'Carroll 2022-10-20 11:44:51 +07:00
parent 0978a808d6
commit 3811169d20

View file

@ -59,11 +59,14 @@ module.exports = class Tier {
this.#status = validateStatus(value);
}
/** @type {'public'} */
/** @type {'public'|'none'} */
#visibility;
get visibility() {
return this.#visibility;
}
set visibility(value) {
this.#visibility = validateVisibility(value);
}
/** @type {'paid'|'free'} */
#type;