return;
}
- window.open(encode(path));
+ app.activeEntry = row;
+ app.activeEntry.fullPath = encode(sanitize(app.path + '/' + row.filePath));
+ app.previewDrawerVisible = true
+
+ // need to wait for DOM element to exist
+ setTimeout(function () {
+ $('iframe').on('load', function (e) {
+ if (!e.target.contentWindow.document.body) return;
+
+ e.target.contentWindow.document.body.style.display = 'flex'
+ e.target.contentWindow.document.body.style.justifyContent = 'center'
+ });
+ }, 0);
}
function uploadFiles(files) {
password: '',
busy: false
},
+ previewDrawerVisible: false,
+ activeEntry: {},
entries: [],
accessTokens: [],
accessTokensDialogVisible: false