chore: enable/disable features in platforms (#2968)
This commit is contained in:
parent
8590a9a110
commit
1370b53726
3 changed files with 7 additions and 0 deletions
|
|
@ -131,6 +131,7 @@
|
|||
@click="emit('export-json-collection')"
|
||||
/>
|
||||
<span
|
||||
v-if="platform.platformFeatureFlags.exportAsGIST"
|
||||
v-tippy="{ theme: 'tooltip' }"
|
||||
:title="
|
||||
!currentUser
|
||||
|
|
|
|||
|
|
@ -18,6 +18,9 @@ export type PlatformDef = {
|
|||
history: HistoryPlatformDef
|
||||
tabState: TabStatePlatformDef
|
||||
}
|
||||
platformFeatureFlags: {
|
||||
exportAsGIST: boolean
|
||||
}
|
||||
}
|
||||
|
||||
export let platform: PlatformDef
|
||||
|
|
|
|||
|
|
@ -20,4 +20,7 @@ createHoppApp("#app", {
|
|||
history: historyDef,
|
||||
tabState: tabStateDef,
|
||||
},
|
||||
platformFeatureFlags: {
|
||||
exportAsGIST: true,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue