Registration and activation

This commit is contained in:
Torsten Schulz
2024-07-20 20:43:18 +02:00
parent 3880a265eb
commit bbf4a2deb3
51 changed files with 3016 additions and 69 deletions

View File

@@ -2,11 +2,11 @@
<DialogWidget
ref="dialog"
title="dataPrivacy.title"
isTitleTranslated=true
:isTitleTranslated=true
icon="privacy24.png"
:show-close="true"
:show-close=true
:buttons="[{ text: 'Ok' }]"
:modal="false"
:modal=false
@close="closeDialog"
@ok="handleOk"
>

View File

@@ -0,0 +1,52 @@
<template>
<DialogWidget ref="dialog" title="error.title" :show-close="true" :buttons="buttons" :modal="true" width="25em"
height="15em" name="ErrorDialog" :isTitleTranslated=true>
<div class="error-content">
<p>{{ translatedErrorMessage }}</p>
</div>
</DialogWidget>
</template>
<script>
import DialogWidget from '@/components/DialogWidget.vue';
export default {
name: 'ErrorDialog',
components: {
DialogWidget,
},
data() {
return {
errorMessage: '',
buttons: [
{ text: 'error.close', action: 'close' }
]
};
},
computed: {
translatedErrorMessage() {
if (this.errorMessage.startsWith('tr:')) {
return this.$t(this.errorMessage.substring(3));
}
return this.errorMessage;
}
},
methods: {
open(message) {
this.errorMessage = message;
this.$refs.dialog.open();
},
close() {
this.$refs.dialog.close();
}
}
};
</script>
<style scoped>
.error-content {
padding: 1em;
color: red;
text-align: center;
}
</style>

View File

@@ -2,11 +2,11 @@
<DialogWidget
ref="dialog"
title="imprint.title"
isTitleTranslated=true
:isTitleTranslated=true
icon="imprint24.png"
:show-close="true"
:buttons="[{ text: 'Ok' }]"
:modal="false"
:modal=false
@close="closeDialog"
@ok="handleOk"
>