Commit 136069c2 authored by Janis Streib's avatar Janis Streib 🦉

UPD: macfinder: some ui polish

parent 63a12be1
Pipeline #130082 passed with stages
in 5 minutes and 53 seconds
......@@ -35,8 +35,8 @@
<ul>
<li v-for="res in data.item.status.result" v-bind:key="res.host + res.port">
Switch <code>{{ res.host }}</code>, Port <code>{{ res.port }}</code>
<p>{{ res.nd_p_port.module.root_module.building.name }}
({{ res.nd_p_port.module.root_module.building.nr }}),
<p><a target="_blank" :href="'https://www.kit.edu/campusplan/index.php?id='+res.nd_p_port.module.root_module.building.nr">{{ res.nd_p_port.module.root_module.building.name }}
({{ res.nd_p_port.module.root_module.building.nr }})</a>,
{{ res.nd_p_port.module.root_module.floor.nr }},
{{ res.nd_p_port.module.root_module.room.name }} ({{ res.nd_p_port.module.root_module.room.nr }})
</p>
......@@ -54,12 +54,19 @@
</template>
</template>
<template v-slot:cell(actions)="data">
<b-button variant="outline-primary" @click="refire(data.item.bcd, data.item.mac)"><font-awesome-icon icon="sync"></font-awesome-icon></b-button>
<b-button :id="'refire_'+data.item.job_id" variant="outline-primary" @click="refire(data.item.bcd, data.item.mac)"><font-awesome-icon icon="sync"></font-awesome-icon></b-button>
<b-tooltip :target="'refire_'+data.item.job_id" triggers="hover"
variant="primary" placement="left">
Erneut suchen
</b-tooltip>
</template>
<template v-slot:cell(started)="data">
{{ (new Date(data.item.started)).toLocaleDateString()}}
{{ (new Date(data.item.started)).toLocaleTimeString()}}
</template>
<template v-slot:cell(bcd)="data">
<b-button variant="link" :to="'/dnsvs/bcds/'+data.item.bcd">{{data.item.bcd}}</b-button>
</template>
</b-table>
</div>
</template>
......@@ -122,6 +129,7 @@ export default {
},
async createJob(ev) {
ev.preventDefault()
this.search_mac = this.bcd_query = ''
await MacfinderService.createJob(this.search_bcd.name, this.search_mac)
await this.refresh()
},
......
Markdown is supported
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