Added tooltips to explain settings meaning

This commit is contained in:
Eliot Berriot 2018-04-17 19:54:28 +02:00
parent f31874edf5
commit 183bbe3ad6
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 15 additions and 10 deletions

View File

@ -65,22 +65,18 @@
</th>
<th v-if="result && result.results.length > 0">
<i18next path="Showing results {%0%}-{%1%} on {%2%}">
{{ ((page-1) * paginateBy) + 1 }}
{{ ((page-1) * paginateBy) + result.results.length }}
{{ result.count }}
</i18next>
{{ $t('Showing results {%start%}-{%end%} on {%total%}', {start: ((page-1) * paginateBy) + 1 , end: ((page-1) * paginateBy) + result.results.length, total: result.count})}}
<th>
<button
@click="launchImport"
:disabled="checked.length === 0 || isImporting"
:class="['ui', 'green', {loading: isImporting}, 'button']">
<i18next path="Import {%count%} tracks" :count="checked.length"/>
{{ $t('Import {%count%} tracks', {'count': checked.length}) }}
</button>
<router-link
v-if="importBatch"
:to="{name: 'library.import.batches.detail', params: {id: importBatch.id }}">
<i18next path="Import #{%id%} launched" :id="importBatch.id"/>
<i18next path="Import #{%id%} launched" :id="importBatch.id"/>
</router-link>
</th>
<th></th>

View File

@ -18,7 +18,10 @@
<table class="ui collapsing very basic table">
<tbody>
<tr>
<td>Follow status</td>
<td >
Follow status
<span :data-tooltip="$t('This indicate if the remote library granted you access')"><i class="question circle icon"></i></span>
</td>
<td>
<template v-if="object.follow.approved === null">
<i class="loading icon"></i> Pending approval
@ -34,7 +37,10 @@
</td>
</tr>
<tr>
<td>Federation</td>
<td>
Federation
<span :data-tooltip="$t('Use this flag to enable/disable federation with this library')"><i class="question circle icon"></i></span>
</td>
<td>
<div class="ui toggle checkbox">
<input
@ -47,7 +53,10 @@
</td>
</tr>
<tr>
<td>Auto importing</td>
<td>
Auto importing
<span :data-tooltip="$t('When enabled, auto importing will automatically import new tracks published in this library')"><i class="question circle icon"></i></span>
</td>
<td>
<div class="ui toggle checkbox">
<input