blob: bfa750fddb3f4da110d7eb6d12dcafdd1c94127e (
plain)
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
|
<!--
- SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<NcEmptyContent class="empty-view" :name="name" :description="description">
<template #icon>
<slot name="icon" />
</template>
</NcEmptyContent>
</template>
<script>
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'
export default {
name: 'EmptyView',
components: {
NcEmptyContent,
},
props: {
name: {
type: String,
required: true,
},
description: {
type: String,
required: true,
},
},
}
</script>
<style lang="scss" scoped>
.empty-view {
height: 100%;
padding: calc(var(--default-grid-baseline) * 4);
}
</style>
|