mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
Additions
This commit is contained in:
@ -2,6 +2,14 @@
|
||||
<div id="settingbar" class="container">
|
||||
<div class="settingbar-top-elements">
|
||||
<ul class="settingbar-elements">
|
||||
<li
|
||||
v-for="(connection, key) in connections"
|
||||
:key="key"
|
||||
class="settingbar-element btn btn-link tooltip tooltip-right p-0"
|
||||
:data-tooltip="`${connection.user}@${connection.host}:${connection.port}`"
|
||||
>
|
||||
<i class="dbi" :class="`dbi-${connection.client}`" />
|
||||
</li>
|
||||
<li
|
||||
class="settingbar-element btn btn-link tooltip tooltip-right"
|
||||
data-tooltip="Add connection"
|
||||
@ -23,10 +31,15 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapActions } from 'vuex';
|
||||
import { mapActions, mapGetters } from 'vuex';
|
||||
|
||||
export default {
|
||||
name: 'TheSettingBar',
|
||||
computed: {
|
||||
...mapGetters({
|
||||
connections: 'connections/getConnections'
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
...mapActions({
|
||||
showNewConnModal: 'connections/showNewConnModal'
|
||||
@ -50,8 +63,18 @@ export default {
|
||||
|
||||
.settingbar-elements{
|
||||
list-style: none;
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
.settingbar-element{
|
||||
height: initial;
|
||||
|
||||
.settingbar-element-icon{
|
||||
width: 42px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user