chore: enable/disable features in platforms (#2968)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -20,4 +20,7 @@ createHoppApp("#app", {
|
|||||||
history: historyDef,
|
history: historyDef,
|
||||||
tabState: tabStateDef,
|
tabState: tabStateDef,
|
||||||
},
|
},
|
||||||
|
platformFeatureFlags: {
|
||||||
|
exportAsGIST: true,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user