File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 37
37
}
38
38
],
39
39
"footer" : {
40
- "showTerms" : true ,
41
40
"showSitemap" : true ,
42
41
"excludeSitemapOn" : [" /explorer" , " /discover" ],
43
42
"links" : [
Original file line number Diff line number Diff line change 3
3
const modalStore = getModalStore ();
4
4
5
5
import { page } from ' $app/stores' ;
6
- import { branding } from ' $lib/configuration' ;
6
+ import { branding , features } from ' $lib/configuration' ;
7
7
import { user } from ' $lib/stores/User' ;
8
8
9
9
import TermsModal from ' $lib/components/modals/TermsModal.svelte' ;
49
49
{/if }
50
50
<footer id =" main-footer" class =" flex relative" >
51
51
<ul >
52
- {#if branding ?.footer ?.showTerms }
53
- <li ><button class ="hover:underline" on:click ={openTermsModal }>Terms of Service</button ></li >
52
+ {#if features .termsOfService }
53
+ <li >
54
+ <button class ="hover:underline text-xs" on:click ={openTermsModal }>Terms of Service</button >
55
+ </li >
54
56
{/if }
55
57
{#each branding ?.footer ?.links as link }
56
58
<li >
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ export const features: Indexable = {
141
141
dashboard : import . meta. env ?. VITE_DASHBOARD === 'true' ,
142
142
dashboardDrawer : import . meta. env ?. VITE_DASHBOARD_DRAWER === 'true' ,
143
143
confirmDownload : import . meta. env ?. VITE_CONFIRM_DOWNLOAD === 'true' ,
144
+ termsOfService : import . meta. env ?. VITE_ENABLE_TOS === 'true' ,
144
145
} ;
145
146
146
147
export const settings : Indexable = {
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ export interface SiteMapConfig {
21
21
22
22
export interface FooterConfig {
23
23
showSitemap : boolean ;
24
- showTerms ?: boolean ;
25
24
excludeSitemapOn : string [ ] ;
26
25
links : Array < {
27
26
title : string ;
You can’t perform that action at this time.
0 commit comments