Commit ccf4ac68 authored by Janis Streib's avatar Janis Streib 🦉
Browse files

FIX: missing popover for edit record (closes #211)

parent 5f59f084
Pipeline #118895 passed with stages
in 9 minutes and 11 seconds
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</template> </template>
<template v-slot:cell(actions)="data"> <template v-slot:cell(actions)="data">
<b-button-group> <b-button-group>
<b-dropdown @click="editItem(data.item)" split variant="outline-primary"> <b-dropdown :id="'button-edit-record-' + data.item.fqdn + '_' + record_type + '_' + data.item.data" @click="editItem(data.item)" split variant="outline-primary">
<template #button-content> <template #button-content>
<font-awesome-icon :icon="['far', 'edit']"></font-awesome-icon> <font-awesome-icon :icon="['far', 'edit']"></font-awesome-icon>
</template> </template>
...@@ -40,6 +40,10 @@ ...@@ -40,6 +40,10 @@
<b-dropdown-item @click="deleteItem(data.item, true)">FQDN und alle referenzierende Records mitlöschen <b-dropdown-item @click="deleteItem(data.item, true)">FQDN und alle referenzierende Records mitlöschen
</b-dropdown-item> </b-dropdown-item>
</b-dropdown> </b-dropdown>
<b-tooltip :target="'button-edit-record-' + data.item.fqdn + '_' + record_type + '_' + data.item.data" triggers="hover"
variant="primary" placement="left">
Record bearbeiten
</b-tooltip>
</b-button-group> </b-button-group>
</template> </template>
<template v-slot:cell(ttl)="data"> <template v-slot:cell(ttl)="data">
......
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
</template> </template>
<template v-slot:cell(actions)="data"> <template v-slot:cell(actions)="data">
<b-button-group> <b-button-group>
<b-dropdown @click="editItem(data.item)" split variant="outline-primary"> <b-dropdown :id="'button-edit-record-' + data.item.fqdn + '_' + record_type + '_' + data.item.data" @click="editItem(data.item)" split variant="outline-primary">
<template #button-content> <template #button-content>
<font-awesome-icon :icon="['far', 'edit']"></font-awesome-icon> <font-awesome-icon :icon="['far', 'edit']"></font-awesome-icon>
</template> </template>
...@@ -265,11 +265,15 @@ ...@@ -265,11 +265,15 @@
</b-dropdown-item> </b-dropdown-item>
</b-dropdown> </b-dropdown>
</b-button-group> </b-button-group>
<b-tooltip :target="'button-edit-record-' + data.item.fqdn + '_' + record_type + '_' + data.item.data" triggers="hover"
variant="primary" placement="left">
Record bearbeiten
</b-tooltip>
</template> </template>
<template v-slot:cell(ttl)="data"> <template v-slot:cell(ttl)="data">
<template v-if="data.item.ttl != null">{{ data.item.ttl }}s</template> <template v-if="data.item.ttl != null">{{ data.item.ttl }}s</template>
<span v-else title="Geerbt von Zone" <span v-else title="Geerbt von Zone"
class="text-black-50">{{ data.item.ttl_zone_default }}s</span> class="text-muted">{{ data.item.ttl_zone_default }}s</span>
<span v-if="data.item.ttl_reset_days" <span v-if="data.item.ttl_reset_days"
class="text-danger"><br/>Reset in {{ data.item.ttl_reset_days }} Tagen</span> class="text-danger"><br/>Reset in {{ data.item.ttl_reset_days }} Tagen</span>
</template> </template>
......
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