dashboard: rename backupTargets to backupSites

This commit is contained in:
Girish Ramakrishnan
2025-09-12 09:48:37 +02:00
parent c5b7264f1a
commit da6be5c490
8 changed files with 172 additions and 172 deletions
+6 -6
View File
@@ -16,7 +16,7 @@ import AppsView from './views/AppsView.vue';
import AppConfigureView from './views/AppConfigureView.vue';
import AppearanceView from './views/AppearanceView.vue';
import AppstoreView from './views/AppstoreView.vue';
import BackupTargetsView from './views/BackupTargetsView.vue';
import BackupSitesView from './views/BackupSitesView.vue';
import BackupAppArchivesView from './views/BackupAppArchivesView.vue';
import BackupListView from './views/BackupListView.vue';
import CloudronAccountView from './views/CloudronAccountView.vue';
@@ -46,7 +46,7 @@ const VIEWS = {
APPEARANCE: 'appearance',
APPS: 'apps',
APPSTORE: 'appstore',
BACKUP_TARGETS: 'backup-targets',
BACKUP_SITES: 'backup-sites',
BACKUP_LIST: 'backup-list',
BACKUP_APP_ARCHIVES: 'backup-app-archives',
CLOUDRON_ACCOUNT: 'cloudron-account',
@@ -145,8 +145,8 @@ function onHashChange() {
view.value = VIEWS.APP;
} else if (v === VIEWS.APPEARANCE && profile.value.isAtLeastAdmin) {
view.value = VIEWS.APPEARANCE;
} else if (v === VIEWS.BACKUP_TARGETS && profile.value.isAtLeastAdmin) {
view.value = VIEWS.BACKUP_TARGETS;
} else if (v === VIEWS.BACKUP_SITES && profile.value.isAtLeastAdmin) {
view.value = VIEWS.BACKUP_SITES;
} else if (v === VIEWS.BACKUP_LIST && profile.value.isAtLeastAdmin) {
view.value = VIEWS.BACKUP_LIST;
} else if (v === VIEWS.BACKUP_APP_ARCHIVES && profile.value.isAtLeastAdmin) {
@@ -282,7 +282,7 @@ onMounted(async () => {
<Transition name="sidebar-item-group-animation">
<div class="sidebar-item-group" v-if="activeSidebarGroup === 'backup'">
<a class="sidebar-item" :class="{ active: activeSidebarItem === 'backup-list' }" href="#/backup-list" @click="onSidebarClose()"><i class="fa fa-fw fa-list-check"></i> {{ $t('backups.listing.title') }}</a>
<a class="sidebar-item" :class="{ active: activeSidebarItem === 'backup-targets' }" href="#/backup-targets" @click="onSidebarClose()"><i class="fa fa-fw fa-hard-drive"></i> Storage</a>
<a class="sidebar-item" :class="{ active: activeSidebarItem === 'backup-sites' }" href="#/backup-sites" @click="onSidebarClose()"><i class="fa fa-fw fa-hard-drive"></i> Storage</a>
<a class="sidebar-item" :class="{ active: activeSidebarItem === 'backup-app-archives' }" href="#/backup-app-archives" @click="onSidebarClose()"><i class="fa fa-fw fa-grip"></i> App Archives</a>
</div>
</Transition>
@@ -335,7 +335,7 @@ onMounted(async () => {
<AppConfigureView v-else-if="view === VIEWS.APP" />
<AppearanceView v-else-if="view === VIEWS.APPEARANCE" />
<AppstoreView v-else-if="view === VIEWS.APPSTORE" />
<BackupTargetsView v-else-if="view === VIEWS.BACKUP_TARGETS" />
<BackupSitesView v-else-if="view === VIEWS.BACKUP_SITES" />
<BackupListView v-else-if="view === VIEWS.BACKUP_LIST" />
<BackupAppArchivesView v-else-if="view === VIEWS.BACKUP_APP_ARCHIVES" />
<CloudronAccountView v-else-if="view === VIEWS.CLOUDRON_ACCOUNT" />