Remove footer in filemanager
This commit is contained in:
@@ -6,8 +6,7 @@ const t = i18n.t;
|
||||
|
||||
import { ref, onMounted, computed, useTemplateRef } from 'vue';
|
||||
import { useRouter, useRoute, onBeforeRouteUpdate } from 'vue-router';
|
||||
import { marked } from 'marked';
|
||||
import { fetcher, Dialog, DirectoryView, TopBar, Breadcrumb, BottomBar, Button, InputDialog, MainLayout, ButtonGroup, Notification, FileUploader, Spinner } from 'pankow';
|
||||
import { fetcher, Dialog, DirectoryView, TopBar, Breadcrumb, Button, InputDialog, MainLayout, ButtonGroup, Notification, FileUploader, Spinner } from 'pankow';
|
||||
import { sanitize, sleep } from 'pankow/utils';
|
||||
import { API_ORIGIN, BASE_URL, ISTATES } from '../constants.js';
|
||||
import PreviewPanel from '../components/PreviewPanel.vue';
|
||||
@@ -37,7 +36,6 @@ const cwd = ref('/');
|
||||
const busyRefresh = ref(false);
|
||||
const busyRestart = ref(false);
|
||||
const fatalError = ref(false);
|
||||
const footerContent = ref('');
|
||||
const activeItem = ref(null);
|
||||
const activeDirectoryItem = ref({});
|
||||
const items = ref([]);
|
||||
@@ -459,13 +457,6 @@ onMounted(async () => {
|
||||
return onFatalError(`Unsupported type ${type}`);
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await fetcher.get(`${API_ORIGIN}/api/v1/dashboard/config`, { access_token: accessToken });
|
||||
footerContent.value = marked.parse(result.body.footer);
|
||||
} catch (e) {
|
||||
console.error('Failed to fetch Cloudron config.', e);
|
||||
}
|
||||
|
||||
window.document.title = `File Manager - ${title.value}`;
|
||||
|
||||
resourceType.value = type;
|
||||
@@ -573,9 +564,6 @@ onMounted(async () => {
|
||||
@finished="onUploadFinished"
|
||||
:tr="$t"
|
||||
/>
|
||||
<BottomBar>
|
||||
<div v-html="footerContent" class="bottom-bar-content"></div>
|
||||
</BottomBar>
|
||||
</template>
|
||||
</MainLayout>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user