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
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,
},
})