Remove Koena Connect button

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-04-18 14:46:53 +02:00
parent 2eac639200
commit 0b04980332
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
6 changed files with 1 additions and 31 deletions

View file

@ -52,21 +52,6 @@
>{{ $t("Create") }}</b-button >{{ $t("Create") }}</b-button
> >
</b-navbar-item> </b-navbar-item>
<b-navbar-item
v-if="config && config.features.koenaConnect"
class="koena"
tag="a"
href="https://mediation.koena.net/framasoft/mobilizon/"
target="_blank"
rel="noopener external"
hreflang="fr"
>
<img
src="/img/koena-a11y.svg"
width="150"
alt="Contact accessibilité"
/>
</b-navbar-item>
</template> </template>
<template slot="end"> <template slot="end">
<b-navbar-item tag="div"> <b-navbar-item tag="div">
@ -381,15 +366,6 @@ nav {
background-color: inherit; background-color: inherit;
} }
.koena {
padding-top: 0;
padding-bottom: 0;
& > img {
max-height: 4rem;
padding-top: 0.2rem;
}
}
.identity-wrapper { .identity-wrapper {
display: flex; display: flex;

View file

@ -71,7 +71,6 @@ export const CONFIG = gql`
features { features {
groups groups
eventCreation eventCreation
koenaConnect
} }
restrictions { restrictions {
onlyAdminCanCreateGroups onlyAdminCanCreateGroups

View file

@ -95,7 +95,6 @@ export interface IConfig {
features: { features: {
eventCreation: boolean; eventCreation: boolean;
groups: boolean; groups: boolean;
koenaConnect: boolean;
}; };
restrictions: { restrictions: {
onlyAdminCanCreateGroups: boolean; onlyAdminCanCreateGroups: boolean;

View file

@ -54,7 +54,6 @@ export const configMock = {
__typename: "Features", __typename: "Features",
eventCreation: true, eventCreation: true,
groups: true, groups: true,
koenaConnect: false,
}, },
restrictions: { restrictions: {
__typename: "Restrictions", __typename: "Restrictions",

View file

@ -144,8 +144,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Config do
timezones: Tzdata.zone_list(), timezones: Tzdata.zone_list(),
features: %{ features: %{
groups: Config.instance_group_feature_enabled?(), groups: Config.instance_group_feature_enabled?(),
event_creation: Config.instance_event_creation_enabled?(), event_creation: Config.instance_event_creation_enabled?()
koena_connect: Config.get([:instance, :koena_connect_link], false)
}, },
restrictions: %{ restrictions: %{
only_admin_can_create_groups: Config.only_admin_can_create_groups?(), only_admin_can_create_groups: Config.only_admin_can_create_groups?(),

View file

@ -283,8 +283,6 @@ defmodule Mobilizon.GraphQL.Schema.ConfigType do
field(:event_creation, :boolean, field(:event_creation, :boolean,
description: "Whether event creation is allowed on this instance" description: "Whether event creation is allowed on this instance"
) )
field(:koena_connect, :boolean, description: "Activate link to Koena Connect")
end end
@desc """ @desc """