Move contact to organized by

And minor things

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-09-30 10:45:22 +02:00
parent 36cdcaa864
commit c8449a0693
5 changed files with 19 additions and 9 deletions

View File

@@ -105,13 +105,13 @@ export default class AboutInstance extends Vue {
if (this.isContactURL) {
return {
uri: this.config.contact,
text: this.urlToHostname(this.config.contact) || (this.$t("Contact") as string),
text: AboutInstance.urlToHostname(this.config.contact) || (this.$t("Contact") as string),
};
}
return null;
}
urlToHostname(url: string): string | null {
static urlToHostname(url: string): string | null {
try {
return new URL(url).hostname;
} catch (e) {

View File

@@ -329,7 +329,7 @@
:endsOn="event.endsOn"
/>
</event-metadata-block>
<event-metadata-block :title="$tc('Contact', event.contacts.length)">
<event-metadata-block :title="$t('Organized by')">
<popover-actor-card :actor="event.organizerActor" v-if="!event.attributedTo">
<actor-card :actor="event.organizerActor" />
</popover-actor-card>

View File

@@ -180,7 +180,7 @@ export default class Register extends Vue {
config!: IConfig;
async submit(): Promise<Route | void> {
async submit(): Promise<void> {
this.sendingForm = true;
this.credentials.locale = this.$i18n.locale;
try {
@@ -191,7 +191,7 @@ export default class Register extends Vue {
variables: this.credentials,
});
return this.$router.push({
this.$router.push({
name: RouteName.REGISTER_PROFILE,
params: { email: this.credentials.email },
});