mirror of https://github.com/nextcloud/calendar
Use standardized EmptyContent component
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
188b961410
commit
7bf9fa2d3b
|
@ -71,28 +71,3 @@
|
|||
//min-height: unset !important;
|
||||
}
|
||||
}
|
||||
|
||||
.empty-calendar-screen {
|
||||
background: rgba($color-main-background, .75);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: 5000;
|
||||
padding-top: 10%;
|
||||
|
||||
&__icon {
|
||||
.icon {
|
||||
height: 64px;
|
||||
margin: 0 auto;
|
||||
width: 64px;
|
||||
background-size: 64px;
|
||||
opacity: 0.55;
|
||||
}
|
||||
}
|
||||
|
||||
&__message {
|
||||
text-align: center;
|
||||
margin-top: 25px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,23 +21,21 @@
|
|||
-->
|
||||
|
||||
<template>
|
||||
<div class="empty-calendar-screen">
|
||||
<div class="empty-calendar-screen__icon">
|
||||
<div class="icon icon-calendar-dark" />
|
||||
</div>
|
||||
<div class="empty-calendar-screen__message">
|
||||
<h2>
|
||||
{{ $t('calendar', 'Public calendar does not exist') }}
|
||||
</h2>
|
||||
<p>
|
||||
{{ $t('calendar', 'Maybe the share was deleted or has expired?' ) }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<EmptyContent icon="icon-calendar-dark">
|
||||
{{ $t('calendar', 'Public calendar does not exist') }}
|
||||
<template #desc>
|
||||
{{ $t('calendar', 'Maybe the share was deleted or has expired?' ) }}
|
||||
</template>
|
||||
</EmptyContent>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent'
|
||||
|
||||
export default {
|
||||
name: 'EmptyCalendar',
|
||||
components: {
|
||||
EmptyContent,
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue