🔥 Removes view config screen, as not necessary

This commit is contained in:
Alicia Sykes 2021-08-08 18:39:52 +01:00
parent aa89a5b27e
commit e6cfad6d4e

View File

@ -10,15 +10,15 @@
{{ $t('config.download-config-button') }} {{ $t('config.download-config-button') }}
</button> </button>
</a> </a>
<button class="config-button center" @click="() => navigateToTab(2)"> <button class="config-button center" @click="() => navigateToTab(1)">
<EditIcon class="button-icon"/> <EditIcon class="button-icon"/>
{{ $t('config.edit-config-button') }} {{ $t('config.edit-config-button') }}
</button> </button>
<button class="config-button center" @click="() => navigateToTab(4)"> <button class="config-button center" @click="() => navigateToTab(3)">
<CustomCssIcon class="button-icon"/> <CustomCssIcon class="button-icon"/>
{{ $t('config.edit-css-button') }} {{ $t('config.edit-css-button') }}
</button> </button>
<button class="config-button center" @click="() => navigateToTab(3)"> <button class="config-button center" @click="() => navigateToTab(2)">
<CloudIcon class="button-icon"/> <CloudIcon class="button-icon"/>
{{backupId ? $t('config.edit-cloud-sync-button') : $t('config.cloud-sync-button') }} {{backupId ? $t('config.edit-cloud-sync-button') : $t('config.cloud-sync-button') }}
</button> </button>
@ -51,21 +51,6 @@
<!-- Rebuild App Modal --> <!-- Rebuild App Modal -->
<RebuildApp /> <RebuildApp />
</TabItem> </TabItem>
<TabItem :name="$t('config.view-config-tab')" class="code-container">
<pre id="conf-yaml">{{yaml}}</pre>
<div class="yaml-action-buttons">
<h2>{{ $t('config.actions-label') }}</h2>
<a class="yaml-button download" @click="downloadConfigFile('conf.yml', yaml)">
{{ $t('config.download-config-button') }}
</a>
<a class="yaml-button copy" @click="copyConfigToClipboard()">
{{ $t('config.copy-config-label') }}
</a>
<a class="yaml-button reset" @click="resetLocalSettings()">
{{ $t('config.reset-config-label') }}
</a>
</div>
</TabItem>
<TabItem :name="$t('config.edit-config-tab')"> <TabItem :name="$t('config.edit-config-tab')">
<JsonEditor :config="config" /> <JsonEditor :config="config" />
</TabItem> </TabItem>