Move contact to organized by
And minor things Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user