📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
currently password protected projects are not available for selfhosted
Blue Mouse0b86e3774dd4
diff --git a/src/pages/Project/Settings/ProjectSettings.tsx b/src/pages/Project/Settings/ProjectSettings.tsxindex 06b33e7b4..0862b5092 100644--- a/src/pages/Project/Settings/ProjectSettings.tsx+++ b/src/pages/Project/Settings/ProjectSettings.tsx@@ -464,28 +464,30 @@ const ProjectSettings = ({label={t('project.settings.public')}hint={t('project.settings.publicHint')}/>- <Checkbox- checked={Boolean(form.isPasswordProtected)}- onChange={() => {- if (!form.public && form.isPasswordProtected) {- setForm({- ...form,- isPasswordProtected: false,- })- return- }-- if (!form.public) {- setShowProtected(true)- }- }}- disabled={form?.public}- name='isPasswordProtected'- id='isPasswordProtected'- className='mt-4'- label={t('project.settings.protected')}- hint={t('project.settings.protectedHint')}- />+ {!isSelfhosted && (+ <Checkbox+ checked={Boolean(form.isPasswordProtected)}+ onChange={() => {+ if (!form.public && form.isPasswordProtected) {+ setForm({+ ...form,+ isPasswordProtected: false,+ })+ return+ }++ if (!form.public) {+ setShowProtected(true)+ }+ }}+ disabled={form?.public}+ name='isPasswordProtected'+ id='isPasswordProtected'+ className='mt-4'+ label={t('project.settings.protected')}+ hint={t('project.settings.protectedHint')}+ />+ )}<div className='flex justify-between mt-8 h-20 sm:h-min'><div className='flex flex-wrap items-center'><Button className='mr-2 border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={onCancel} secondary regular>