chore: enable/disable features in platforms (#2968)

This commit is contained in:
Akash K 2023-04-06 15:06:33 +05:30 committed by GitHub
parent 8590a9a110
commit 1370b53726
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View file

@ -131,6 +131,7 @@
@click="emit('export-json-collection')"
/>
<span
v-if="platform.platformFeatureFlags.exportAsGIST"
v-tippy="{ theme: 'tooltip' }"
:title="
!currentUser

View file

@ -18,6 +18,9 @@ export type PlatformDef = {
history: HistoryPlatformDef
tabState: TabStatePlatformDef
}
platformFeatureFlags: {
exportAsGIST: boolean
}
}
export let platform: PlatformDef

View file

@ -20,4 +20,7 @@ createHoppApp("#app", {
history: historyDef,
tabState: tabStateDef,
},
platformFeatureFlags: {
exportAsGIST: true,
},
})