summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/LogModuleEntry.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/LogModuleEntry.vue')
-rw-r--r--webapp/src/components/LogModuleEntry.vue17
1 files changed, 17 insertions, 0 deletions
diff --git a/webapp/src/components/LogModuleEntry.vue b/webapp/src/components/LogModuleEntry.vue
index 2e9ce67..e6ccead 100644
--- a/webapp/src/components/LogModuleEntry.vue
+++ b/webapp/src/components/LogModuleEntry.vue
@@ -35,6 +35,9 @@
<template #default>
<v-card style="user-select: text;"><v-card-text>
<div v-if="item.client.deleted" class="error--text" style="text-align: center; font-weight: bold;">{{ $t('deleted') }}</div>
+ <v-btn v-else :to="{ name: 'GroupModule.client', params: { id: item.client.id } }" @click.native="scrollToTop" class="open-button" icon small>
+ <v-icon small>open_in_new</v-icon>
+ </v-btn>
<table>
<tr><td class="snapshot-key">{{ $t('id') }}</td><td>{{ item.clientSnapshot.id }}</td></tr>
<tr><td class="snapshot-key">{{ $t('name') }}</td><td>{{ item.clientSnapshot.name }}</td></tr>
@@ -57,6 +60,10 @@
</template>
<template #default>
<v-card style="user-select: text;"><v-card-text>
+ <div v-if="item.group.deleted" class="error--text" style="text-align: center; font-weight: bold;">{{ $t('deleted') }}</div>
+ <v-btn v-else :to="{ name: 'GroupModule.group', params: { id: item.group.id } }" @click.native="scrollToTop" class="open-button" icon small>
+ <v-icon small>open_in_new</v-icon>
+ </v-btn>
<table>
<tr><td class="snapshot-key">{{ $t('id') }}</td><td>{{ item.groupSnapshot.id }}</td></tr>
<tr><td class="snapshot-key">{{ $t('name') }}</td><td>{{ item.groupSnapshot.name }}</td></tr>
@@ -76,6 +83,7 @@
</template>
<template #default>
<v-card style="user-select: text;"><v-card-text>
+ <div v-if="item.user.deleted" class="error--text" style="text-align: center; font-weight: bold;">{{ $t('deleted') }}</div>
<table>
<tr><td class="snapshot-key">{{ $t('id') }}</td><td>{{ item.userSnapshot.id }}</td></tr>
<tr><td class="snapshot-key">{{ $t('username') }}</td><td>{{ item.userSnapshot.username }}</td></tr>
@@ -139,6 +147,9 @@ export default {
}
},
methods: {
+ scrollToTop () {
+ window.scrollTo(0, 0)
+ }
}
}
</script>
@@ -164,6 +175,12 @@ export default {
text-align: right;
padding-right: 16px;
}
+
+.open-button {
+ position: absolute;
+ top: 0;
+ left: 0;
+}
</style>
<style>