forked from pkp/ui-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkp/pkp-lib#9744 Add vue templates for Jobs, FailedJobs and FailedJob…
…Details pages
- Loading branch information
1 parent
2262259
commit 12837ce
Showing
7 changed files
with
303 additions
and
92 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,61 @@ | ||
<template> | ||
<PkpTable> | ||
<template #label v-if="label"> | ||
<span v-html="label"></span> | ||
</template> | ||
<TableHeader> | ||
<TableColumn | ||
v-for="column in columns" | ||
:key="column.name" | ||
:id="column.name" | ||
> | ||
{{ column.label }} | ||
</TableColumn> | ||
</TableHeader> | ||
<TableBody> | ||
<TableRow v-for="row in rows" :key="row.key"> | ||
<TableCell>{{ row.attribute }}</TableCell> | ||
<TableCell> | ||
<span> | ||
<pre>{{ row.value }}</pre> | ||
</span> | ||
</TableCell> | ||
</TableRow> | ||
</TableBody> | ||
</PkpTable> | ||
</template> | ||
|
||
<script> | ||
import PkpTable from '@/components/TableNext/Table.vue'; | ||
import TableCell from '@/components/TableNext/TableCell.vue'; | ||
import TableColumn from '@/components/TableNext/TableColumn.vue'; | ||
import TableHeader from '@/components/TableNext/TableHeader.vue'; | ||
import TableBody from '@/components/TableNext/TableBody.vue'; | ||
import TableRow from '@/components/TableNext/TableRow.vue'; | ||
export default { | ||
name: 'FailedJobDetailsPage', | ||
components: { | ||
PkpTable, | ||
TableCell, | ||
TableColumn, | ||
TableHeader, | ||
TableBody, | ||
TableRow, | ||
}, | ||
props: { | ||
label: { | ||
type: String, | ||
default: '', | ||
}, | ||
columns: { | ||
type: Array, | ||
default: [], | ||
}, | ||
rows: { | ||
type: Array, | ||
default: [], | ||
}, | ||
}, | ||
}; | ||
</script> |
Oops, something went wrong.