feat: opt in to cookies footer entry
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</tippy>
|
</tippy>
|
||||||
<HoppButtonSecondary
|
<HoppButtonSecondary
|
||||||
|
v-if="platform.platformFeatureFlags.cookiesEnabled ?? false"
|
||||||
:label="t('app.cookies')"
|
:label="t('app.cookies')"
|
||||||
:icon="IconCookie"
|
:icon="IconCookie"
|
||||||
@click="showCookiesModal = true"
|
@click="showCookiesModal = true"
|
||||||
|
|||||||
@@ -27,6 +27,12 @@ export type PlatformDef = {
|
|||||||
platformFeatureFlags: {
|
platformFeatureFlags: {
|
||||||
exportAsGIST: boolean
|
exportAsGIST: boolean
|
||||||
hasTelemetry: 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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user