Open pageb018 opened 4 years ago
It's really simple to do it manually:
if (+process.env.XOA_PLAN === 5) {
this.displayOpenSourceDisclaimer()
}
{plan === 'Community' && !this.state.dismissedSourceBanner && (
<div className='alert alert-danger mb-0'>
<a
href='https://xen-orchestra.com/#!/xoa?pk_campaign=xo_source_banner'
rel='noopener noreferrer'
target='_blank'
>
{_('disclaimerText3')}
</a>
<button className='close' onClick={this.dismissSourceBanner}>
×
</button>
</div>
)}
yarn build
Awesome. Thank you!
Brian, from mobile.
On Thu, Mar 26, 2020 at 1:42 PM -0400, "megabert" notifications@github.com wrote:
It's really simple to do it manually:
stop the xo-server navigate to the file xen-orchestra/packages/xo-web/src/xo-app/index.js edit the file and find this code-fragement:
if (+process.env.XOA_PLAN === 5) {
this.displayOpenSourceDisclaimer()
}
delete these 3 lines get back to the top-level of the xen-orchestra checkout(=> be in directory xen-orchestra) run yarn build start your xo-server again the disclaimer should be gone now
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Here's a script, that works with 5.44.1. It's written to be robust, maybe it'll work for future versions:
tried the current script, but it seems to fail.
thanks!