Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
493 changes: 193 additions & 300 deletions @xen-orchestra/web-core/lib/assets/not-found.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<template>
<svg aria-hidden="true" viewBox="0 0 397.13 396.85">
<use :href="`${notFoundUrl}#not-found-illustration`" />
</svg>
</template>

<script lang="ts" setup>
import notFoundUrl from '@core/assets/not-found.svg'
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
class="vts-state-hero"
>
<UiLoader v-if="type === 'busy'" class="loader" />
<VtsNotFoundIllustration v-else-if="type === 'not-found'" class="image" />
<img v-else-if="imageSrc" :src="imageSrc" :alt="type" class="image" />
<div v-if="slots.default || success" :class="[typoClass, { mobile: isMobile }]" class="content">
<div v-if="success">{{ t('all-good!') }}</div>
Expand All @@ -20,6 +21,7 @@
</template>

<script lang="ts" setup>
import VtsNotFoundIllustration from '@core/components/state-hero/VtsNotFoundIllustration.vue'
import UiLoader from '@core/components/ui/loader/UiLoader.vue'
import { useUiStore } from '@core/stores/ui.store.ts'
import type { StateHeroFormat, StateHeroSize, StateHeroType } from '@core/types/state-hero.type.ts'
Expand Down Expand Up @@ -57,7 +59,7 @@ const error = computed(() => type === 'error')
const success = computed(() => type === 'all-good' || type === 'all-done')

const imageSrc = computed(() => {
if (type === 'busy') {
if (type === 'busy' || type === 'not-found') {
return undefined
}

Expand Down
Loading