From f97b51a9151d0d886e2a4703c91494de55e6d5ef Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Sun, 5 Jan 2020 19:27:30 +0100 Subject: Show preview drawer instead of directly opening files in a new tab --- frontend/js/app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'frontend/js/app.js') diff --git a/frontend/js/app.js b/frontend/js/app.js index d99a91e..9ce073e 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js @@ -146,7 +146,11 @@ function open(row, column, event) { return; } - window.open(encode(path)); + app.activeEntry = row; + app.activeEntry.fullPath = encode(sanitize(app.path + '/' + row.filePath)); + app.previewDrawerVisible = true + + // window.open(encode(path)); } function uploadFiles(files) { @@ -280,6 +284,8 @@ var app = new Vue({ password: '', busy: false }, + previewDrawerVisible: false, + activeEntry: {}, entries: [], accessTokens: [], accessTokensDialogVisible: false -- cgit v1.2.3