@@ -230,6 +230,23 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
<div v-if="currentUser?.id && !currentActor?.id" class="p-5">
|
||||||
|
<o-notification variant="warning">
|
||||||
|
<div class="flex place-content-between items-center">
|
||||||
|
<span>
|
||||||
|
{{
|
||||||
|
t("You have to create and select a profile to fully use Mobilizon.")
|
||||||
|
}}
|
||||||
|
</span>
|
||||||
|
<o-button
|
||||||
|
:label="t('Create a new profile')"
|
||||||
|
variant="primary"
|
||||||
|
size="small"
|
||||||
|
@click="createProfile()"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</o-notification>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
@@ -261,11 +278,11 @@ import { ICurrentUser } from "@/types/current-user.model";
|
|||||||
|
|
||||||
const { currentUser } = useCurrentUserClient();
|
const { currentUser } = useCurrentUserClient();
|
||||||
const { currentActor } = useCurrentActorClient();
|
const { currentActor } = useCurrentActorClient();
|
||||||
|
const { identities } = useCurrentUserIdentities();
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
const { identities } = useCurrentUserIdentities();
|
|
||||||
const { registrationsOpen, registrationsAllowlist, databaseLogin } =
|
const { registrationsOpen, registrationsAllowlist, databaseLogin } =
|
||||||
useRegistrationConfig();
|
useRegistrationConfig();
|
||||||
|
|
||||||
@@ -364,4 +381,10 @@ const performLogout = async () => {
|
|||||||
return router.push({ name: RouteName.HOME });
|
return router.push({ name: RouteName.HOME });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const createProfile = () => {
|
||||||
|
router.push({
|
||||||
|
name: RouteName.CREATE_IDENTITY,
|
||||||
|
});
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -378,6 +378,7 @@
|
|||||||
"You have one event in {days} days.": "You have no events in {days} days | You have one event in {days} days. | You have {count} events in {days} days",
|
"You have one event in {days} days.": "You have no events in {days} days | You have one event in {days} days. | You have {count} events in {days} days",
|
||||||
"You have one event today.": "You have no events today | You have one event today. | You have {count} events today",
|
"You have one event today.": "You have no events today | You have one event today. | You have {count} events today",
|
||||||
"You have one event tomorrow.": "You have no events tomorrow | You have one event tomorrow. | You have {count} events tomorrow",
|
"You have one event tomorrow.": "You have no events tomorrow | You have one event tomorrow. | You have {count} events tomorrow",
|
||||||
|
"You have to create and select a profile to fully use Mobilizon.":"You have to create and select a profile to fully use Mobilizon.",
|
||||||
"You need to login.": "You need to login.",
|
"You need to login.": "You need to login.",
|
||||||
"You will be redirected to the original instance": "You will be redirected to the original instance",
|
"You will be redirected to the original instance": "You will be redirected to the original instance",
|
||||||
"You wish to participate to the following event": "You wish to participate to the following event",
|
"You wish to participate to the following event": "You wish to participate to the following event",
|
||||||
|
|||||||
@@ -1444,6 +1444,7 @@
|
|||||||
"You have one event in {days} days.": "Vous n'avez pas d'événements dans {days} jours | Vous avez un événement dans {days} jours. | Vous avez {count} événements dans {days} jours",
|
"You have one event in {days} days.": "Vous n'avez pas d'événements dans {days} jours | Vous avez un événement dans {days} jours. | Vous avez {count} événements dans {days} jours",
|
||||||
"You have one event today.": "Vous n'avez pas d'événement aujourd'hui | Vous avez un événement aujourd'hui. | Vous avez {count} événements aujourd'hui",
|
"You have one event today.": "Vous n'avez pas d'événement aujourd'hui | Vous avez un événement aujourd'hui. | Vous avez {count} événements aujourd'hui",
|
||||||
"You have one event tomorrow.": "Vous n'avez pas d'événement demain | Vous avez un événement demain. | Vous avez {count} événements demain",
|
"You have one event tomorrow.": "Vous n'avez pas d'événement demain | Vous avez un événement demain. | Vous avez {count} événements demain",
|
||||||
|
"You have to create and select a profile to fully use Mobilizon.":"Vous devez créer et sélectionner un profil pour utiliser Mobilizon complètement.",
|
||||||
"You haven't interacted with other instances yet.": "Vous n'avez interagi avec encore aucune autre instance.",
|
"You haven't interacted with other instances yet.": "Vous n'avez interagi avec encore aucune autre instance.",
|
||||||
"You invited {member}.": "Vous avez invité {member}.",
|
"You invited {member}.": "Vous avez invité {member}.",
|
||||||
"You joined the event {event}.": "Vous avez rejoint l'événement {event}.",
|
"You joined the event {event}.": "Vous avez rejoint l'événement {event}.",
|
||||||
|
|||||||
Reference in New Issue
Block a user