Minor UI changes

This commit is contained in:
Douglas Barone 2022-04-28 14:35:11 -04:00
parent 9ecc501f0c
commit f8ff438e5a
2 changed files with 46 additions and 49 deletions

View File

@ -37,6 +37,51 @@
<v-toolbar color="teal darken-2" flat dark>
<v-toolbar-title>
{{ pAHost.description || pAHost.cidr.split('/')[0] }}
<v-dialog
v-if="me.sAMAccountName == pAHost.owner.sAMAccountName"
max-width="600"
>
<template #activator="{ on, attrs }">
<v-btn small icon v-bind="attrs" v-on="on">
<v-icon>mdi-trash-can</v-icon>
</v-btn>
</template>
<template #default="dialog">
<v-card>
<v-toolbar flat class="display-1">
<v-toolbar-title>
<v-icon color="warning" left>mdi-alert</v-icon>
Você tem certeza?
</v-toolbar-title>
</v-toolbar>
<v-card-text class="pa-4">
O host deixará de receber o mapeamento de usuários
</v-card-text>
<v-card-actions class="justify-end">
<v-btn
text
color="error"
@click="
() => {
dialog.value = false
delHost(pAHost.id)
}
"
>
Sim, remova o host
</v-btn>
<v-btn
color="success"
text
@click="dialog.value = false"
>
Cancelar
</v-btn>
</v-card-actions>
</v-card>
</template>
</v-dialog>
</v-toolbar-title>
</v-toolbar>
@ -56,55 +101,10 @@
</v-list-item>
</v-list>
<v-card-text>
{{ pAHost.note || 'Sem observações' }}
{{ pAHost.note }}
<v-divider />
<small>Adicionado por: {{ pAHost.owner.displayName }}</small>
</v-card-text>
<v-card-actions>
<v-spacer />
<v-dialog
v-if="me.sAMAccountName == pAHost.owner.sAMAccountName"
max-width="600"
>
<template #activator="{ on, attrs }">
<v-btn icon v-bind="attrs" v-on="on">
<v-icon>mdi-trash-can</v-icon>
</v-btn>
</template>
<template #default="dialog">
<v-card>
<v-toolbar flat class="display-1">
<v-toolbar-title>
<v-icon color="warning" left>mdi-alert</v-icon>
Você tem certeza?
</v-toolbar-title>
</v-toolbar>
<v-card-text class="pa-4">
O host deixará de receber o mapeamento de usuários
</v-card-text>
<v-card-actions class="justify-end">
<v-btn
text
color="error"
@click="
() => {
dialog.value = false
delHost(pAHost.id)
}
"
>
Sim, remova o host
</v-btn>
<v-btn color="success" text @click="dialog.value = false">
Cancelar
</v-btn>
</v-card-actions>
</v-card>
</template>
</v-dialog>
</v-card-actions>
</v-card>
</v-col>
</v-row>

View File

@ -171,9 +171,6 @@
</v-alert>
<v-footer class="mt-6 light-shadow" absolute>
<span v-if="$vuetify.breakpoint.mdAndUp">
Ordenando por <em>"visto por último"</em>
</span>
<v-spacer />
<v-dialog v-model="helpDialog" width="500px">
<template #activator="{ on, attrs }">