mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
hide 'Open in...' for already-converted docs
This commit is contained in:
parent
73eb80ea30
commit
747c1a28d0
@ -1303,6 +1303,14 @@ define([
|
||||
if (!metadata || !Util.isPlainTextFile(metadata.fileType, metadata.title)) {
|
||||
hide.push('openincode');
|
||||
}
|
||||
|
||||
if (metadata && /\/(doc|presentation|sheet)\//.test(metadata.href)) {
|
||||
console.error(metadata); // XXX
|
||||
hide.push('openinsheet');
|
||||
hide.push('openindoc');
|
||||
hide.push('openinpresentation');
|
||||
}
|
||||
|
||||
if (!metadata || !Util.isSpreadsheet(metadata.fileType, metadata.title)
|
||||
|| !priv.supportsWasm) {
|
||||
hide.push('openinsheet');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user