Allow to report a group

And multiple group tweaks

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-09-30 15:25:30 +02:00
parent cf070d7e67
commit 92367a5f33
33 changed files with 1088 additions and 754 deletions

View File

@@ -28,7 +28,7 @@
{{ $t("Reported by {reporter}", { reporter: report.reporter.preferredUsername }) }}
</span>
</div>
<div class="column" v-if="report.content">{{ report.content }}</div>
<div class="column" v-if="report.content" v-html="report.content" />
</div>
</div>
</div>

View File

@@ -100,15 +100,15 @@ export default class ReportModal extends Vue {
forward = false;
get translatedCancelText() {
return this.cancelText || this.$t("Cancel");
get translatedCancelText(): string {
return this.cancelText || (this.$t("Cancel") as string);
}
get translatedConfirmText() {
return this.confirmText || this.$t("Send the report");
get translatedConfirmText(): string {
return this.confirmText || (this.$t("Send the report") as string);
}
confirm() {
confirm(): void {
this.onConfirm(this.content, this.forward);
this.close();
}
@@ -116,7 +116,7 @@ export default class ReportModal extends Vue {
/**
* Close the Dialog.
*/
close() {
close(): void {
this.isActive = false;
this.$emit("close");
}