feat: opt in to cookies footer entry

This commit is contained in:
Andrew Bastin
2023-10-25 18:44:05 +05:30
parent 3f1ca8f20b
commit 7fff08c142
2 changed files with 7 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
</template>
</tippy>
<HoppButtonSecondary
v-if="platform.platformFeatureFlags.cookiesEnabled ?? false"
:label="t('app.cookies')"
:icon="IconCookie"
@click="showCookiesModal = true"

View File

@@ -27,6 +27,12 @@ export type PlatformDef = {
platformFeatureFlags: {
exportAsGIST: boolean
hasTelemetry: boolean
/**
* Whether the platform supports cookies (affects whether the cookies footer item is shown)
* If a value is not given, then the value is assumed to be false
*/
cookiesEnabled?: boolean
}
}