mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 10:03:09 +02:00
38 lines
712 B
Vue
38 lines
712 B
Vue
<template>
|
|
<div>
|
|
<XDrive ref="drive" @cd="x => folder = x"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { computed, defineComponent } from 'vue';
|
|
import { faCloud, faEllipsisH } from '@fortawesome/free-solid-svg-icons';
|
|
import XDrive from '@/components/drive.vue';
|
|
import * as os from '@/os';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
XDrive
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
INFO: {
|
|
title: computed(() => this.folder ? this.folder.name : this.$t('drive')),
|
|
icon: faCloud,
|
|
action: {
|
|
icon: faEllipsisH,
|
|
handler: this.menu
|
|
}
|
|
},
|
|
folder: null,
|
|
};
|
|
},
|
|
|
|
methods: {
|
|
menu(ev) {
|
|
os.modalMenu(this.$refs.drive.getMenu(), ev.currentTarget || ev.target);
|
|
}
|
|
}
|
|
});
|
|
</script>
|