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
>
</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 slot="end">
<b-navbar-item tag="div">
@ -381,15 +366,6 @@ nav {
background-color: inherit;
}
.koena {
padding-top: 0;
padding-bottom: 0;
& > img {
max-height: 4rem;
padding-top: 0.2rem;
}
}
.identity-wrapper {
display: flex;

View file

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

View file

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

View file

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

View file

@ -144,8 +144,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Config do
timezones: Tzdata.zone_list(),
features: %{
groups: Config.instance_group_feature_enabled?(),
event_creation: Config.instance_event_creation_enabled?(),
koena_connect: Config.get([:instance, :koena_connect_link], false)
event_creation: Config.instance_event_creation_enabled?()
},
restrictions: %{
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,
description: "Whether event creation is allowed on this instance"
)
field(:koena_connect, :boolean, description: "Activate link to Koena Connect")
end
@desc """