You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-08-06 16:22:46 +03:00
* Disable file drag-and-drop if insufficient permissions Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Add tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
21 lines
597 B
Plaintext
21 lines
597 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`FileDropTarget should not render drop file prompt on mouse over with file if permissions do not allow 1`] = `<DocumentFragment />`;
|
|
|
|
exports[`FileDropTarget should render drop file prompt on mouse over with file if permissions allow 1`] = `
|
|
<DocumentFragment>
|
|
<div
|
|
class="mx_FileDropTarget"
|
|
>
|
|
<img
|
|
alt=""
|
|
class="mx_FileDropTarget_image"
|
|
src="image-file-stub"
|
|
/>
|
|
Drop file here to upload
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`FileDropTarget should render nothing when idle 1`] = `<DocumentFragment />`;
|