Skip to content

Commit 7e4e655

Browse files
committed
file saved alert added
1 parent 3fc6c7b commit 7e4e655

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/toolbarActions/toolbarFunctions.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,12 @@ async function saveGraphMLFile(state) {
8888
const stream = await graph.fileHandle.createWritable();
8989
await stream.write(getGraphFun(state).saveToFolder());
9090
await stream.close();
91+
// eslint-disable-next-line no-alert
92+
alert('File saved Successfully');
9193
} else if (graph.fileHandle === null) {
9294
getGraphFun(state).saveWithoutFileHandle();
95+
// eslint-disable-next-line no-alert
96+
alert('File saved Successfully');
9397
} else {
9498
// eslint-disable-next-line no-alert
9599
alert('Switch to Edge/Chrome!');

0 commit comments

Comments
 (0)