-
-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesign settings page & Add doc links (#1997)
Closes #1935. - Moves transformations to a new list for visual separaration, as it is only second class configuration. - Renames System Services to System Settings. - Add Add-on Settings, which opens the same settings page as the add-on store, i.e. provides log, service config and persistence config (if persistence service). Add-ons that only provide log settings are considered advanced and hidden by default. - Consolidate the add-on store and the newly added add-on settings into a single place (refactoring included). - Add doc links to Things, Items, pages, rules, scenes & scripts list pages. - Make some system settings advanced. - Use a third column for large screens. --------- Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
- Loading branch information
1 parent
5b515ce
commit 4c7298c
Showing
13 changed files
with
239 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
bundles/org.openhab.ui/web/src/pages/settings/menu/add-on-section.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<div> | ||
<f7-block-title> | ||
Add-on Settings | ||
</f7-block-title> | ||
<f7-list class="search-list"> | ||
<f7-list-item | ||
v-for="a in addonsSettings" | ||
:key="a.uid" | ||
:link="'addons/' + a.uid + '/config'" | ||
:title="a.label" /> | ||
<f7-list-button v-if="!expanded && addonsInstalled.length > addonsSettings.length" color="blue" @click="expanded = true"> | ||
Show All | ||
</f7-list-button> | ||
</f7-list> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: ['addonsInstalled', 'addonsServices'], | ||
data () { | ||
return { | ||
ready: false, | ||
expanded: false | ||
} | ||
}, | ||
computed: { | ||
addonsSettings () { | ||
if (this.expanded) return this.addonsInstalled | ||
return this.addonsInstalled.filter((a) => | ||
a.type === 'persistence' || | ||
this.addonsServices.findIndex((as) => as.configDescriptionURI.split(':')[1] === a.id) > -1 | ||
) | ||
} | ||
} | ||
} | ||
</script> |
Oops, something went wrong.