Refactor
This commit is contained in:
parent
a30cfbc514
commit
b3e85d9aaa
|
@ -1,18 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<v-toolbar dense flat>
|
<v-toolbar dense flat>
|
||||||
<v-toolbar-items>
|
<v-toolbar-items v-for="tab in tabs" :key="tab.name">
|
||||||
<v-btn color="primary" :to="{ name: 'logs' }" text>
|
<v-btn color="primary" :to="{ name: tab.name }" text>
|
||||||
<v-icon left>mdi-comment-text-outline</v-icon>
|
<v-icon left>{{ tab.icon }}</v-icon>
|
||||||
Logs
|
{{ tab.title }}
|
||||||
</v-btn>
|
|
||||||
<v-btn color="primary" :to="{ name: 'paloalto' }" text>
|
|
||||||
<v-icon left>mdi-router</v-icon>
|
|
||||||
Palo Alto
|
|
||||||
</v-btn>
|
|
||||||
<v-btn color="primary" :to="{ name: 'maintenance' }" text>
|
|
||||||
<v-icon left>mdi-tools</v-icon>
|
|
||||||
Manutenção
|
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-toolbar-items>
|
</v-toolbar-items>
|
||||||
</v-toolbar>
|
</v-toolbar>
|
||||||
|
@ -24,9 +16,29 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
name: 'SystemAdministration',
|
||||||
|
data: () => ({
|
||||||
|
tabs: [
|
||||||
|
{
|
||||||
|
name: 'paloalto',
|
||||||
|
title: 'Palo Alto',
|
||||||
|
icon: 'mdi-router'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'maintenance',
|
||||||
|
title: 'Manutenção',
|
||||||
|
icon: 'mdi-tools'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'logs',
|
||||||
|
title: 'Logs',
|
||||||
|
icon: 'mdi-comment-text'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}),
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.$route.name == 'system-administration')
|
if (this.$route.name == 'system-administration')
|
||||||
this.$router.replace({ name: 'logs' })
|
this.$router.replace({ name: 'paloalto' })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user