Web: Files: Embedding: removed embedding option for files without viewing

This commit is contained in:
Nikita Gopienko 2024-06-06 17:25:37 +03:00
parent 5010799f8c
commit ee9cb0f200

View File

@ -2134,7 +2134,10 @@ class FilesStore {
}
if (!canViewFile || isRecycleBinFolder) {
fileOptions = this.removeOptions(fileOptions, ["preview"]);
fileOptions = this.removeOptions(fileOptions, [
"preview",
"embedding-settings",
]);
}
if (!canOpenPlayer || isRecycleBinFolder) {