refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s

This commit is contained in:
Kroonk
2026-05-22 16:19:55 +02:00
parent 38cc4c09ca
commit a213a1dba0
2215 changed files with 242567 additions and 6015 deletions

View File

@@ -0,0 +1,74 @@
<template>
<div class="di">
<a :class="lclass" :title="title" href="" @click.prevent="open">
<slot>
</slot>
</a>
<sweet-modal ref="modal" tabindex="-1" role="dialog">
<div>
{{ message }}
</div>
<!-- Modal Actions -->
<div slot="button" class="flex-ns justify-between">
<a class="btn mt2" href="" @click.prevent="close">
{{ $t('app.cancel') }}
</a>
<button v-cy-name="'confirm-' + name" class="btn btn-primary w-auto-ns w100 mt2 pb0-ns" @click="confirm($event)">
{{ $t('app.confirm') }}
</button>
</div>
</sweet-modal>
</div>
</template>
<script>
import { SweetModal } from 'sweet-modal-vue';
export default {
components: {
SweetModal,
},
props: {
name: {
type: String,
default: '',
},
title: {
type: String,
default: '',
},
message: {
type: String,
default: '',
},
linkClass: {
type: [String, Array],
default: '',
},
},
computed: {
lclass() {
return this.linkClass === '' ? 'pointer' : this.linkClass;
}
},
methods: {
open() {
this.$refs.modal.open();
},
close() {
this.$refs.modal.close();
},
confirm(event) {
this.close();
this.$emit('confirm', event);
}
}
};
</script>