-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust result page, factorize empty contents
Signed-off-by: Julien Veyssier <[email protected]>
- Loading branch information
Showing
6 changed files
with
186 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<template> | ||
<NcEmptyContent | ||
:title="t('assistant', 'Your task is running')" | ||
:name="t('assistant', 'Your task is running')" | ||
:description="t('assistant', 'If it takes too long...')"> | ||
<template #action> | ||
<NcButton | ||
@click="$emit('cancel')"> | ||
<template #icon> | ||
<CloseIcon /> | ||
</template> | ||
{{ t('assistant', 'Run in the background') }} | ||
</NcButton> | ||
</template> | ||
<template #icon> | ||
<NcLoadingIcon /> | ||
</template> | ||
</NcEmptyContent> | ||
</template> | ||
|
||
<script> | ||
import CloseIcon from 'vue-material-design-icons/Close.vue' | ||
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js' | ||
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' | ||
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js' | ||
export default { | ||
name: 'RunningEmptyContent', | ||
components: { | ||
NcButton, | ||
NcEmptyContent, | ||
CloseIcon, | ||
NcLoadingIcon, | ||
}, | ||
props: { | ||
}, | ||
emits: [ | ||
'cancel', | ||
], | ||
data() { | ||
return { | ||
} | ||
}, | ||
computed: { | ||
}, | ||
mounted() { | ||
}, | ||
methods: { | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
// nothing yet | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<template> | ||
<NcEmptyContent | ||
:title="title" | ||
:name="title" | ||
:description="description"> | ||
<template v-if="showCloseButton" #action> | ||
<NcButton | ||
@click="$emit('close')"> | ||
<template #icon> | ||
<CloseIcon /> | ||
</template> | ||
{{ t('assistant', 'Close') }} | ||
</NcButton> | ||
</template> | ||
<template #icon> | ||
<AssistantIcon /> | ||
</template> | ||
</NcEmptyContent> | ||
</template> | ||
|
||
<script> | ||
import CloseIcon from 'vue-material-design-icons/Close.vue' | ||
import AssistantIcon from './icons/AssistantIcon.vue' | ||
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' | ||
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js' | ||
export default { | ||
name: 'ScheduledEmptyContent', | ||
components: { | ||
AssistantIcon, | ||
NcButton, | ||
NcEmptyContent, | ||
CloseIcon, | ||
}, | ||
props: { | ||
description: { | ||
type: String, | ||
required: true, | ||
}, | ||
showCloseButton: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
}, | ||
emits: [ | ||
'cancel', | ||
], | ||
data() { | ||
return { | ||
title: t('assistant', 'Your task has been scheduled, you will receive a notification when it has finished'), | ||
} | ||
}, | ||
computed: { | ||
}, | ||
mounted() { | ||
}, | ||
methods: { | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
// nothing yet | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters