forked from Ivasoft/geovisio-website
add status sequence
This commit is contained in:
@@ -57,6 +57,9 @@
|
||||
"sequence_photos": "Photos",
|
||||
"sequence_date": "Prise de vue",
|
||||
"sequence_status": "Statut",
|
||||
"sequence_published": "✅ Publiée",
|
||||
"sequence_waiting": "⌛ En cours de publication",
|
||||
"sequence_hidden": "❌ Masquée",
|
||||
"no_sequences_text": "Vous n'avez pas encore de photos publiées \uD83D\uDE22",
|
||||
"button_upload": "Partager vos photos"
|
||||
},
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<span>{{ item['geovisio:status'] }}</span>
|
||||
<span>{{ sequenceStatus(item['geovisio:status']) }}</span>
|
||||
</div>
|
||||
</router-link>
|
||||
</li>
|
||||
@@ -102,7 +102,8 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { onMounted, ref, computed } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import axios from 'axios'
|
||||
import Button from '@/components/Button.vue'
|
||||
import Link from '@/components/Link.vue'
|
||||
@@ -111,9 +112,19 @@ import type {
|
||||
ExtentInterface
|
||||
} from './interfaces/MySequencesView'
|
||||
import { formatDate } from '@/utils/dates'
|
||||
const { t } = useI18n()
|
||||
let userSequences = ref<LinkInterface[]>([])
|
||||
let isSorted = ref<boolean>(false)
|
||||
|
||||
function sequenceStatus(status: string): string {
|
||||
if (status === 'ready') {
|
||||
return t('pages.sequences.sequence_published')
|
||||
}
|
||||
if (status === 'waiting-for-process') {
|
||||
return t('pages.sequences.sequence_waiting')
|
||||
}
|
||||
return t('pages.sequences.sequence_hidden')
|
||||
}
|
||||
function sortElements(type: string): void {
|
||||
let aa: string | number
|
||||
let bb: string | number
|
||||
|
||||
Reference in New Issue
Block a user