mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-22 22:30:05 +01:00
Add selected items count in Manage view
This commit is contained in:
parent
93a721cd68
commit
c23d22e2b3
6
resources/js/langs/locales.js
vendored
6
resources/js/langs/locales.js
vendored
@ -47,7 +47,8 @@ export default {
|
||||
"delete": "Delete",
|
||||
"save": "Save",
|
||||
"close": "Close",
|
||||
"demo_do_not_post_sensitive_data": "This is a demo app, do not post any sensitive data"
|
||||
"demo_do_not_post_sensitive_data": "This is a demo app, do not post any sensitive data",
|
||||
"selected": "selected"
|
||||
},
|
||||
"errors": {
|
||||
"resource_not_found": "Resource not found",
|
||||
@ -336,7 +337,8 @@ export default {
|
||||
"delete": "Supprimer",
|
||||
"save": "Enregistrer",
|
||||
"close": "Fermer",
|
||||
"demo_do_not_post_sensitive_data": "Site de démonstration, ne postez aucune donnée sensible"
|
||||
"demo_do_not_post_sensitive_data": "Site de démonstration, ne postez aucune donnée sensible",
|
||||
"selected": "selectionné(s)"
|
||||
},
|
||||
"errors": {
|
||||
"resource_not_found": "Ressource introuvable",
|
||||
|
@ -52,12 +52,12 @@
|
||||
<div class="column is-three-quarters-mobile is-one-third-tablet is-one-quarter-desktop is-one-quarter-widescreen is-one-quarter-fullhd">
|
||||
<!-- toolbar -->
|
||||
<div class="toolbar has-text-centered" v-if="editMode">
|
||||
<a class="button is-rounded is-outlined" :class="{ 'is-dark': selectedAccounts.length === 0, 'is-danger': selectedAccounts.length > 0 }" :disabled="selectedAccounts.length == 0" @click="destroyAccounts">
|
||||
<span class="icon is-small">
|
||||
<font-awesome-icon :icon="['fas', 'trash']" />
|
||||
</span>
|
||||
<span>{{ $t('commons.delete') }}</span>
|
||||
</a>
|
||||
<div class="manage-buttons tags has-addons are-medium">
|
||||
<span class="tag is-dark">{{ selectedAccounts.length }} {{ $t('commons.selected') }}</span>
|
||||
<a class="tag is-danger" v-if="selectedAccounts.length > 0" @click="destroyAccounts">
|
||||
{{ $t('commons.delete') }} <font-awesome-icon :icon="['fas', 'trash']" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- search -->
|
||||
<div class="field" v-else>
|
||||
|
@ -23,4 +23,5 @@
|
||||
'save' => 'Save',
|
||||
'close' => 'Close',
|
||||
'demo_do_not_post_sensitive_data' => 'This is a demo app, do not post any sensitive data',
|
||||
'selected' => 'selected',
|
||||
];
|
@ -23,4 +23,5 @@
|
||||
'save' => 'Enregistrer',
|
||||
'close' => 'Fermer',
|
||||
'demo_do_not_post_sensitive_data' => 'Site de démonstration, ne postez aucune donnée sensible',
|
||||
'selected' => 'selectionné(s)',
|
||||
];
|
4
resources/sass/app.scss
vendored
4
resources/sass/app.scss
vendored
@ -39,6 +39,10 @@ a:hover {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.manage-buttons {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.form-column {
|
||||
padding-top: 3rem;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user