Commit e13637dc authored by Tobinsk's avatar Tobinsk
Browse files

Add data insight to navbar and add alert if no data are present

parent 813308a7
Pipeline #8881 passed with stage
in 4 minutes and 50 seconds
<template>
<div>
<b-alert variant="primary" :show="list.length === 0">
No data for your {{ $keycloak.tokenParsed.provider }}. Please check back later.
</b-alert>
<b-table
id="my-table"
:busy.sync="loading"
:items="list"
:fields="fields" >
:fields="fields"
v-if="list.length > 0">
<template v-slot:cell(id)="id">
<!-- `data.value` is the value after formatted by the Formatter -->
<RouterLink :to="`/conflict/${id.value}`">{{id.value}}</RouterLink>
......
......@@ -13,6 +13,9 @@
<b-nav-item to="/matching">
<b-icon icon="shuffle"></b-icon> Match
</b-nav-item>
<b-nav-item to="/conflict">
<b-icon icon="box"></b-icon> Data insights <b-badge pill variant="warning">Alpha</b-badge>
</b-nav-item>
<b-nav-item @click="$keycloak.logoutFn" v-if="$keycloak.authenticated">
<b-icon icon="power"></b-icon> Logout
</b-nav-item>
......
......@@ -25,7 +25,7 @@ import {
} from 'bootstrap-vue'
// load icons
import { BIcon, BIconSearch, BIconShuffle, BIconFilter, BIconPower, BIconBoxArrowUpRight, BIconPencil, BIconArrowBarUp,BIconTrash,BIconX, BIconCheck, BIconGear, BIconPlus, BIconCalculator, BIconPlay } from 'bootstrap-vue'
import { BIcon,BIconBox, BIconSearch, BIconShuffle, BIconFilter, BIconPower, BIconBoxArrowUpRight, BIconPencil, BIconArrowBarUp,BIconTrash,BIconX, BIconCheck, BIconGear, BIconPlus, BIconCalculator, BIconPlay } from 'bootstrap-vue'
// icons
vue.component('BIcon', BIcon)
vue.component('BIconSearch', BIconSearch)
......@@ -42,6 +42,7 @@ vue.component('BIconGear', BIconGear)
vue.component('BIconPlay', BIconPlay)
vue.component('BIconCalculator', BIconCalculator)
vue.component('BIconPlus', BIconPlus)
vue.component('BIconBox', BIconBox)
// components
vue.use(FormPlugin)
vue.use(FormGroupPlugin)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment