Skip to content

Commit

Permalink
delete edited subtitle (#3342)
Browse files Browse the repository at this point in the history
  • Loading branch information
KalliSfak authored Jul 29, 2024
1 parent 146d874 commit e78f699
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 32 deletions.
1 change: 0 additions & 1 deletion src/locales/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ export default {
"Das Videoformat wird von diesem Browser / Betriebssystem nicht unterstützt.",
"components.cardElement.fileElement.virusDetected":
"Datei wurde aufgrund eines Virenverdachts gesperrt.",
"components.cardElement.lastUpdatedAt": "Bearbeitet:",
"components.cardElement.LinkElement.label": "Link-Adresse einfügen",
"components.cardElement.notification.visibleAndEditable":
"Dieses Whiteboard ist für alle Kursteilnehmenden sichtbar und bearbeitbar.",
Expand Down
1 change: 0 additions & 1 deletion src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ export default {
"The video format is not supported by this browser/operating system.",
"components.cardElement.fileElement.virusDetected":
"File has been locked due to a suspected virus.",
"components.cardElement.lastUpdatedAt": "Edited by:",
"components.cardElement.LinkElement.label": "Insert link address",
"components.cardElement.notification.visibleAndEditable":
"This whiteboard is visible and editable for all course participants.",
Expand Down
1 change: 0 additions & 1 deletion src/locales/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ export default {
"El formato de vídeo no es compatible con este navegador / sistema operativo.",
"components.cardElement.fileElement.virusDetected":
"Se ha bloqueado el archivo debido a un virus sospechoso.",
"components.cardElement.lastUpdatedAt": "Editado:",
"components.cardElement.LinkElement.label": "Inserte la dirección del enlace",
"components.cardElement.notification.visibleAndEditable":
"Esta pizarra es visible y editable para todos los participantes en el curso.",
Expand Down
1 change: 0 additions & 1 deletion src/locales/uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,6 @@ export default {
"Формат відео не підтримується цим браузером / операційною системою.",
"components.cardElement.fileElement.virusDetected":
"Файл було заблоковано через підозру на вірус.",
"components.cardElement.lastUpdatedAt": "Відредаговано:",
"components.cardElement.LinkElement.label": "Вставити адресу посилання",
"components.cardElement.notification.visibleAndEditable":
"Ця дошка є видимою і доступною для редагування для всіх учасників курсу.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
role="button"
>
<div class="drawing-element-content" @click="redirectToSanitizedUrl">
<InnerContent
:lastUpdatedAt="element.timestamps.lastUpdatedAt"
:docName="element.id"
>
<InnerContent :docName="element.id">
<template v-if="isEditMode">
<BoardMenu scope="element">
<BoardMenuActionMoveUp @click="onMoveDrawingElementEditUp" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { mount } from "@vue/test-utils";
import InnerContent from "./InnerContent.vue";
import {
createTestingI18n,
createTestingVuetify,
} from "@@/tests/test-utils/setup";
import { mount } from "@vue/test-utils";
import InnerContent from "./InnerContent.vue";

describe("InnerContent", () => {
const propsData = {
lastUpdatedAt: "2023-12-15 17:30:00",
isFirstElement: false,
isLastElement: false,
hasMultipleElements: false,
Expand Down
23 changes: 2 additions & 21 deletions src/modules/feature/board-drawing-element/InnerContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
<template #title>
{{ $t("components.cardElement.drawingElement") }}
</template>
<template #subtitle>
{{ $t("components.cardElement.lastUpdatedAt") }}
{{ formattedLastUpdatedAt }}
</template>
<template #menu>
<slot />
</template>
Expand All @@ -20,31 +16,16 @@
import image from "@/assets/img/tldraw.svg";
import { mdiPresentation } from "@mdi/js";
import { ContentElementBar } from "@ui-board";
import dayjs from "dayjs";
import { computed, defineComponent } from "vue";
import { useI18n } from "vue-i18n";
import { defineComponent } from "vue";
export default defineComponent({
name: "InnerContent",
components: { ContentElementBar },
props: {
lastUpdatedAt: {
type: String,
required: true,
},
},
setup(props) {
const { t } = useI18n();
setup() {
const imageSrc = image;
const formattedLastUpdatedAt = computed(() => {
const format = t("format.dateTime");
return dayjs(props.lastUpdatedAt).format(format);
});
return {
imageSrc,
formattedLastUpdatedAt,
mdiPresentation,
};
},
Expand Down

0 comments on commit e78f699

Please sign in to comment.