-
-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathRequest.vue
More file actions
89 lines (81 loc) · 1.71 KB
/
Request.vue
File metadata and controls
89 lines (81 loc) · 1.71 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
<!--
- SPDX-FileCopyrightText: 2024 LibreCode coop and LibreCode contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<div class="container">
<div id="container-request">
<header>
<h1>{{ t('libresign', 'Request Signatures') }}</h1>
<p v-if="!sidebarStore.isVisible()">
{{ t('libresign', 'Choose the file to request signatures.') }}
</p>
</header>
<div class="content-request">
<File v-show="filesStore.selectedNodeId > 0"
status="0"
status-text="none" />
<ReqestPicker v-if="!sidebarStore.isVisible()"
:inline="true" />
</div>
</div>
</div>
</template>
<script>
import File from '../Components/File/File.vue'
import ReqestPicker from '../Components/Request/RequestPicker.vue'
import { useFilesStore } from '../store/files.js'
import { useSidebarStore } from '../store/sidebar.js'
export default {
name: 'Request',
components: {
File,
ReqestPicker,
},
setup() {
const filesStore = useFilesStore()
const sidebarStore = useSidebarStore()
return { filesStore, sidebarStore }
},
async mounted() {
this.filesStore.disableIdentifySigner()
},
beforeUnmount() {
this.filesStore.selectFile()
},
}
</script>
<style lang="scss" scoped>
.container{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
#container-request {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 500px;
max-width: 100%;
text-align: center;
header {
margin-bottom: 2.5rem;
h1 {
font-size: 45px;
margin-bottom: 1rem;
}
p {
font-size: 15px;
}
}
.content-request{
display: flex;
gap: 12px; flex: 1;
flex-direction: column;
}
}
</style>