2018-02-17 11:14:23 +02:00
|
|
|
<template>
|
2018-09-17 23:35:06 +03:00
|
|
|
<mk-window ref="window" is-modal width="800px" height="500px" @closed="destroyDom">
|
2019-02-18 02:48:00 +02:00
|
|
|
<template v-slot:header>
|
2019-01-26 13:59:14 +02:00
|
|
|
<span>{{ $t('choose-prompt') }}</span>
|
2019-02-18 02:48:00 +02:00
|
|
|
</template>
|
2018-02-17 11:14:23 +02:00
|
|
|
|
2019-01-26 13:59:14 +02:00
|
|
|
<div class="hllkpxxu">
|
|
|
|
<x-drive
|
|
|
|
ref="browser"
|
|
|
|
class="browser"
|
|
|
|
:multiple="false"
|
|
|
|
/>
|
|
|
|
<div class="footer">
|
|
|
|
<ui-button inline @click="cancel" style="margin-right:16px;">{{ $t('cancel') }}</ui-button>
|
|
|
|
<ui-button inline @click="ok" primary>{{ $t('ok') }}</ui-button>
|
|
|
|
</div>
|
2018-02-17 11:14:23 +02:00
|
|
|
</div>
|
|
|
|
</mk-window>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-11-08 20:44:35 +02:00
|
|
|
import i18n from '../../../i18n';
|
2018-02-17 11:14:23 +02:00
|
|
|
export default Vue.extend({
|
2018-11-08 20:44:35 +02:00
|
|
|
i18n: i18n('desktop/views/components/choose-folder-from-drive-window.vue'),
|
2018-11-11 22:35:09 +02:00
|
|
|
components: {
|
|
|
|
XDrive: () => import('./drive.vue').then(m => m.default),
|
|
|
|
},
|
2018-02-17 11:14:23 +02:00
|
|
|
methods: {
|
|
|
|
ok() {
|
|
|
|
this.$emit('selected', (this.$refs.browser as any).folder);
|
|
|
|
(this.$refs.window as any).close();
|
|
|
|
},
|
|
|
|
cancel() {
|
|
|
|
(this.$refs.window as any).close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2019-01-26 13:59:14 +02:00
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.hllkpxxu
|
|
|
|
display flex
|
|
|
|
flex-direction column
|
|
|
|
height 100%
|
2018-09-26 14:19:35 +03:00
|
|
|
|
2019-01-26 13:59:14 +02:00
|
|
|
.browser
|
|
|
|
flex 1
|
|
|
|
overflow auto
|
2018-03-03 06:47:55 +02:00
|
|
|
|
2019-01-26 13:59:14 +02:00
|
|
|
.footer
|
|
|
|
padding 16px
|
|
|
|
background var(--desktopPostFormBg)
|
|
|
|
text-align right
|
2018-02-17 11:14:23 +02:00
|
|
|
|
|
|
|
</style>
|