add more things

This commit is contained in:
Tykayn 2021-09-01 12:54:11 +02:00 committed by tykayn
parent f66845efa4
commit faa0e2fd3e
10 changed files with 29 additions and 21 deletions

View File

@ -60,7 +60,8 @@ const CustomImage = Image.extend({
top: realEvent.clientY, top: realEvent.clientY,
}); });
if (!coordinates) return false; if (!coordinates) return false;
const client = apolloProvider.defaultClient as ApolloClient<NormalizedCacheObject>; const client =
apolloProvider.defaultClient as ApolloClient<NormalizedCacheObject>;
try { try {
images.forEach(async (image) => { images.forEach(async (image) => {

View File

@ -8,7 +8,8 @@ import { IPerson } from "@/types/actor";
import pDebounce from "p-debounce"; import pDebounce from "p-debounce";
import { NormalizedCacheObject } from "@apollo/client/cache/inmemory/types"; import { NormalizedCacheObject } from "@apollo/client/cache/inmemory/types";
const client = apolloProvider.defaultClient as ApolloClient<NormalizedCacheObject>; const client =
apolloProvider.defaultClient as ApolloClient<NormalizedCacheObject>;
const fetchItems = async (query: string): Promise<IPerson[]> => { const fetchItems = async (query: string): Promise<IPerson[]> => {
const result = await client.query({ const result = await client.query({

View File

@ -14,9 +14,8 @@ export default class IdentityEditionMixin extends Mixins(Vue) {
); );
if (this.identity.preferredUsername === oldUsername) { if (this.identity.preferredUsername === oldUsername) {
this.identity.preferredUsername = IdentityEditionMixin.convertToUsername( this.identity.preferredUsername =
newDisplayName IdentityEditionMixin.convertToUsername(newDisplayName);
);
} }
this.oldDisplayName = newDisplayName; this.oldDisplayName = newDisplayName;

View File

@ -398,14 +398,16 @@ export default class AdminGroupProfile extends Vue {
} }
confirmSuspendProfile(): void { confirmSuspendProfile(): void {
const message = (this.group.domain const message = (
this.group.domain
? this.$t( ? this.$t(
"Are you sure you want to <b>suspend</b> this group? As this group originates from instance {instance}, this will only remove local members and delete the local data, as well as rejecting all the future data.", "Are you sure you want to <b>suspend</b> this group? As this group originates from instance {instance}, this will only remove local members and delete the local data, as well as rejecting all the future data.",
{ instance: this.group.domain } { instance: this.group.domain }
) )
: this.$t( : this.$t(
"Are you sure you want to <b>suspend</b> this group? All members - including remote ones - will be notified and removed from the group, and <b>all of the group data (events, posts, discussions, todos…) will be irretrievably destroyed</b>." "Are you sure you want to <b>suspend</b> this group? All members - including remote ones - will be notified and removed from the group, and <b>all of the group data (events, posts, discussions, todos…) will be irretrievably destroyed</b>."
)) as string; )
) as string;
this.$buefy.dialog.confirm({ this.$buefy.dialog.confirm({
title: this.$t("Suspend group") as string, title: this.$t("Suspend group") as string,

View File

@ -684,7 +684,8 @@ export default class Event extends EventMixin {
try { try {
if (window.isSecureContext) { if (window.isSecureContext) {
this.anonymousParticipation = await this.anonymousParticipationConfirmed(); this.anonymousParticipation =
await this.anonymousParticipationConfirmed();
} }
} catch (e) { } catch (e) {
if (e instanceof AnonymousParticipationNotFoundError) { if (e instanceof AnonymousParticipationNotFoundError) {

View File

@ -621,7 +621,8 @@ export default class Resources extends Mixins(ResourceMixin) {
const updatedResource: IResource = data.updateResource; const updatedResource: IResource = data.updateResource;
// eslint-disable-next-line vue/max-len // eslint-disable-next-line vue/max-len
oldParentCachedResource.children.elements = oldParentCachedResource.children.elements.filter( oldParentCachedResource.children.elements =
oldParentCachedResource.children.elements.filter(
(cachedResource) => cachedResource.id !== updatedResource.id (cachedResource) => cachedResource.id !== updatedResource.id
); );

View File

@ -155,7 +155,10 @@
<div class="container"> <div class="container">
<div class="columns"> <div class="columns">
<div <div
class="column is-one-third-desktop is-offset-one-third-desktop" class="
column
is-one-third-desktop is-offset-one-third-desktop
"
> >
<h1 class="title"> <h1 class="title">
{{ $t("Deleting your Mobilizon account") }} {{ $t("Deleting your Mobilizon account") }}