Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/__tests__/mindmap.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ describe('FilesMindMap', () => {
await flushPromises()

expect(FilesMindMap._file.supportedWrite).toBe(false)
expect(showToast).toHaveBeenCalledWith(expect.stringContaining('are not saved'), expect.anything())
})

it('GETs the public share endpoint with the sharing token on a public share', async () => {
Expand Down
1 change: 1 addition & 0 deletions src/mindmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ const FilesMindMap = {
if (plugin.encode === null) {
data.writeable = false
data.supportedWrite = false
self.showMessage(t('files_mindmap', 'Changes to {extension} files are not saved.', { extension: plugin.name }), 10000)
}

self._file.writeable = data.writeable
Expand Down
Loading