-
-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathFileValidation.vue
More file actions
99 lines (92 loc) · 2.09 KB
/
FileValidation.vue
File metadata and controls
99 lines (92 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!--
- SPDX-FileCopyrightText: 2024 LibreCode coop and LibreCode contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<div>
<div class="section">
<div class="header">
<NcIconSvgWrapper :path="mdiInformationSlabCircle" :size="30" />
<h1>{{ t('libresign', 'Document information') }}</h1>
</div>
<NcNoteCard v-if="documentValidMessage" type="success">
{{ documentValidMessage }}
</NcNoteCard>
<NcNoteCard v-if="isAfterSigned" type="success">
{{ t('libresign', 'Congratulations you have digitally signed a document using LibreSign') }}
</NcNoteCard>
<DocumentValidationDetails
:document="document"
:legalInformation="legalInformation"
/>
</div>
</div>
</template>
<script>
import DocumentValidationDetails from './DocumentValidationDetails.vue'
import { translate as t } from '@nextcloud/l10n'
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'
import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js'
import { mdiInformationSlabCircle } from '@mdi/js'
export default {
name: 'FileValidation',
components: {
DocumentValidationDetails,
NcIconSvgWrapper,
NcNoteCard,
},
props: {
document: {
type: Object,
required: true,
},
legalInformation: {
type: String,
default: '',
},
documentValidMessage: {
type: String,
default: '',
},
isAfterSigned: {
type: Boolean,
default: false,
},
},
setup() {
return { t, mdiInformationSlabCircle }
},
}
</script>
<style lang="scss" scoped>
.section {
background-color: var(--color-main-background);
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 6px 0 var(--color-box-shadow);
margin-bottom: 16px;
.header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 1.5rem;
h1 {
font-size: 20px;
font-weight: 600;
margin: 0;
}
}
@media screen and (max-width: 700px) {
padding: 12px 8px;
box-shadow: none;
border-top: 2px solid var(--color-border-dark);
border-radius: 0;
margin-bottom: 0;
margin-top: 12px;
&:first-child {
border-top: none;
margin-top: 0;
}
}
}
</style>