forked from FoundKeyGang/FoundKey
✌️
This commit is contained in:
parent
bc208ce854
commit
a8f6908940
2 changed files with 11 additions and 4 deletions
|
@ -23,7 +23,7 @@ export default function(opts) {
|
||||||
};
|
};
|
||||||
|
|
||||||
window.open(url + '/selectdrive',
|
window.open(url + '/selectdrive',
|
||||||
'drive_window',
|
'choose_drive_window',
|
||||||
'height=500, width=800');
|
'height=500, width=800');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -62,6 +62,7 @@ import XFolder from './drive.folder.vue';
|
||||||
import XFile from './drive.file.vue';
|
import XFile from './drive.file.vue';
|
||||||
import contains from '../../../common/scripts/contains';
|
import contains from '../../../common/scripts/contains';
|
||||||
import contextmenu from '../../api/contextmenu';
|
import contextmenu from '../../api/contextmenu';
|
||||||
|
import { url } from '../../../config';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
components: {
|
components: {
|
||||||
|
@ -389,9 +390,15 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
newWindow(folder) {
|
newWindow(folder) {
|
||||||
|
if (document.body.clientWidth > 800) {
|
||||||
(this as any).os.new(MkDriveWindow, {
|
(this as any).os.new(MkDriveWindow, {
|
||||||
folder: folder
|
folder: folder
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
window.open(url + '/i/drive/folder/' + folder.id,
|
||||||
|
'drive_window',
|
||||||
|
'height=500, width=800');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
move(target) {
|
move(target) {
|
||||||
|
|
Loading…
Reference in a new issue