-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented: support to display all the history in a modal and update…
…d en.json file(#64)
- Loading branch information
1 parent
19beb8b
commit 62d0c03
Showing
3 changed files
with
74 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<template> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-button @click="closeModal"> | ||
<ion-icon slot="icon-only" :icon="closeOutline" /> | ||
</ion-button> | ||
</ion-buttons> | ||
<ion-title>{{ translate("Group history") }}</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<ion-list> | ||
<ion-item v-for="history in groupHistory" :key="history.jobRunId"> | ||
<ion-label> | ||
<h3>{{ getTime(history.startTime) }}</h3> | ||
<p>{{ getDate(history.startTime) }}</p> | ||
</ion-label> | ||
<ion-badge color="dark">{{ getTime(history.endTime - history.startTime) }}</ion-badge> | ||
</ion-item> | ||
</ion-list> | ||
</ion-content> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { translate } from "@/i18n"; | ||
import { | ||
IonBadge, | ||
IonButton, | ||
IonButtons, | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonItem, | ||
IonLabel, | ||
IonList, | ||
IonTitle, | ||
IonToolbar, | ||
modalController, | ||
} from "@ionic/vue"; | ||
import { closeOutline } from "ionicons/icons"; | ||
import { defineProps } from "vue"; | ||
import { getDate, getTime } from "@/utils"; | ||
defineProps({ | ||
groupHistory: { | ||
required: true, | ||
default: {} | ||
} | ||
}) | ||
function closeModal() { | ||
modalController.dismiss(); | ||
} | ||
</script> |
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