summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-05-29 17:25:07 +0200
committerJulius Härtl <jus@bitgrid.net>2018-06-06 11:40:09 +0200
commita646389cff34a21845bf562f14b3ca38cbacf987 (patch)
treeb2f6c7349c7e77567cb4fac9e51b63cd79cc4bcc /settings
parent3672c6fc8853de49685b5caf440cbbddd51f4679 (diff)
downloadnextcloud-server-a646389cff34a21845bf562f14b3ca38cbacf987.tar.gz
nextcloud-server-a646389cff34a21845bf562f14b3ca38cbacf987.zip
Add tooltips
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings')
-rw-r--r--settings/src/components/appList/appItem.vue12
1 files changed, 10 insertions, 2 deletions
diff --git a/settings/src/components/appList/appItem.vue b/settings/src/components/appList/appItem.vue
index 3b0d7bc7267..7a9d3e9c9fa 100644
--- a/settings/src/components/appList/appItem.vue
+++ b/settings/src/components/appList/appItem.vue
@@ -40,7 +40,9 @@
<div class="app-version" v-if="listView">{{ app.version }}</div>
<div class="app-level">
- <span class="official icon-checkmark" v-if="app.level === 200">{{ t('settings', 'Official') }}</span>
+ <span class="official icon-checkmark" v-if="app.level === 200"
+ v-tooltip.auto="t('settings', 'Official apps are developed by and within the community. They offer central functionality and are ready for production use.')">
+ {{ t('settings', 'Official') }}</span>
<app-score v-if="!listView" :score="app.score"></app-score>
<a :href="appstoreUrl" v-if="!app.internal && listView">Im Store anzeigen ↗</a>
</div>
@@ -65,7 +67,7 @@
<input v-if="app.update" class="update" type="button" :value="t('settings', 'Update to %s', app.update)" v-on:click="update(app.id)" />
<input v-if="app.canUnInstall" class="uninstall" type="button" :value="t('settings', 'Remove')" v-on:click="remove(app.id)" />
<input v-if="app.active" class="enable" type="button" :value="t('settings','Disable')" v-on:click="disable(app.id)" />
- <input v-if="!app.active" class="enable" type="button" :value="enableButtonText" v-on:click="enable(app.id)" :disabled="!app.canInstall" />
+ <input v-if="!app.active" class="enable" type="button" :value="enableButtonText" v-on:click="enable(app.id)" v-tooltip.auto="enableButtonTooltip" :disabled="!app.canInstall" />
</div>
</div>
</template>
@@ -131,6 +133,12 @@
return t('settings','Download and enable');
}
return t('settings','Enable');
+ },
+ enableButtonTooltip() {
+ if (this.app.needsDownload) {
+ return t('settings','The app will be downloaded from the app store');
+ }
+ return false;
}
},
watchers: {