diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-05-25 13:24:51 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-06-06 11:40:09 +0200 |
commit | 492b76935c29b931c991d978b6883eb2d072cf43 (patch) | |
tree | 146b4513b4e2399b7348a2af0924112ab2374343 /settings/src | |
parent | c7f145cce125153949a6356e8f5b6cfa997b0c35 (diff) | |
download | nextcloud-server-492b76935c29b931c991d978b6883eb2d072cf43.tar.gz nextcloud-server-492b76935c29b931c991d978b6883eb2d072cf43.zip |
Add link to developer docs and fix view if appstore is disabled
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings/src')
-rw-r--r-- | settings/src/components/appDetails.vue | 6 | ||||
-rw-r--r-- | settings/src/components/appList/appItem.vue | 5 | ||||
-rw-r--r-- | settings/src/views/Apps.vue | 15 |
3 files changed, 21 insertions, 5 deletions
diff --git a/settings/src/components/appDetails.vue b/settings/src/components/appDetails.vue index 9192c68a868..5518fd04860 100644 --- a/settings/src/components/appDetails.vue +++ b/settings/src/components/appDetails.vue @@ -41,9 +41,9 @@ <a class="appslink" v-if="app.website" :href="app.website" target="_blank" rel="noreferrer noopener">{{ t('settings', 'Visit website') }} ↗</a> <a class="appslink" v-if="app.bugs" :href="app.bugs" target="_blank" rel="noreferrer noopener">{{ t('settings', 'Report a bug') }} ↗</a> - <a class="appslink" v-if="app.documentation.user" :href="app.documentation.user" target="_blank" rel="noreferrer noopener">{{ t('settings', 'User documentation') }} ↗</a> - <a class="appslink" v-if="app.documentation.admin" :href="app.documentation.admin" target="_blank" rel="noreferrer noopener">{{ t('settings', 'Admin documentation') }} ↗</a> - <a class="appslink" v-if="app.documentation.developer" :href="app.documentation.developer" target="_blank" rel="noreferrer noopener">{{ t('settings', 'Developer documentation') }} ↗</a> + <a class="appslink" v-if="app.documentation && app.documentation.user" :href="app.documentation.user" target="_blank" rel="noreferrer noopener">{{ t('settings', 'User documentation') }} ↗</a> + <a class="appslink" v-if="app.documentation && app.documentation.admin" :href="app.documentation.admin" target="_blank" rel="noreferrer noopener">{{ t('settings', 'Admin documentation') }} ↗</a> + <a class="appslink" v-if="app.documentation && app.documentation.developer" :href="app.documentation.developer" target="_blank" rel="noreferrer noopener">{{ t('settings', 'Developer documentation') }} ↗</a> </p> <ul class="app-dependencies"> diff --git a/settings/src/components/appList/appItem.vue b/settings/src/components/appList/appItem.vue index 4b65aed0ca8..13325f6462d 100644 --- a/settings/src/components/appList/appItem.vue +++ b/settings/src/components/appList/appItem.vue @@ -23,8 +23,9 @@ <template> <div class="section"> <div class="app-image app-image-icon" v-on:click="showAppDetails"> - <img :src="app.preview" v-if="!app.previewAsIcon" width="100%" /> - <svg v-else width="32" height="32" viewBox="0 0 32 32" v-if="app.previewAsIcon"> + <div v-if="!app.preview" class="icon-settings-dark"></div> + <img v-if="!app.previewAsIcon && app.preview" :src="app.preview" width="100%" /> + <svg v-if="app.previewAsIcon && app.preview" width="32" height="32" viewBox="0 0 32 32"> <defs><filter id="invertIconApps-606"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs> <image x="0" y="0" width="32" height="32" preserveAspectRatio="xMinYMin meet" filter="url(#invertIconApps-606)" :xlink:href="app.preview" class="app-icon"></image> </svg> diff --git a/settings/src/views/Apps.vue b/settings/src/views/Apps.vue index 7dbf9e887d8..07147d10c61 100644 --- a/settings/src/views/Apps.vue +++ b/settings/src/views/Apps.vue @@ -158,6 +158,14 @@ export default { text: t('settings', 'Disabled apps'), } ]; + + if (!this.settings.appstoreEnabled) { + return { + id: 'appscategories', + items: defaultCategories + } + } + if (this.$store.getters.getUpdateCount > 0) { defaultCategories.push({ id: 'app-category-updates', @@ -187,6 +195,13 @@ export default { categories[0].classes.push('active'); } + categories.push({ + id: 'app-developer-docs', + classes: [], + href: this.settings.developerDocumentation, + text: t('settings', 'Developer documentation') + ' ↗', + }); + // Return return { id: 'appscategories', |