feat(settings): add theme settings to general (#706)

issue-699
Nolan Lawson 2018-12-01 12:57:00 -08:00 zatwierdzone przez GitHub
rodzic a760687c6d
commit f3254bb22d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 11 dodań i 7 usunięć

Wyświetl plik

@ -35,11 +35,8 @@
</div> </div>
</form> </form>
<h2>Themes <h2>{themeTitle}</h2>
</h2> <ThemeSettings instanceName={$currentInstance} />
<p>
Changes to the theme can be made in <em>Settings &gt; Instances &gt; (instance name)</em>
</p>
</SettingsLayout> </SettingsLayout>
<style> <style>
.ui-settings { .ui-settings {
@ -55,12 +52,19 @@
</style> </style>
<script> <script>
import SettingsLayout from '../../_components/settings/SettingsLayout.html' import SettingsLayout from '../../_components/settings/SettingsLayout.html'
import ThemeSettings from '../../_components/settings/instance/ThemeSettings.html'
import { store } from '../../_store/store' import { store } from '../../_store/store'
export default { export default {
components: { components: {
SettingsLayout SettingsLayout,
ThemeSettings
}, },
store: () => store store: () => store,
computed: {
themeTitle: ({ $loggedInInstancesInOrder, $currentInstance }) => (
$loggedInInstancesInOrder.length > 1 ? `Theme for ${$currentInstance}` : 'Theme'
)
}
} }
</script> </script>