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

View File

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

View File

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