1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 03:41:12 +00:00

[dir view, toast] redesigned the 'converting' tip for md & sdoc file … (#5822)

* [dir view, toast] redesigned the 'converting' tip for md & sdoc file items; added a new type of toast

* [toast] updated the loading icon of the 'notify-in-progress' toast
This commit is contained in:
llj
2023-12-11 18:19:23 +08:00
committed by GitHub
parent 7efe677798
commit 8712b7d1a6
6 changed files with 9 additions and 43 deletions

View File

@@ -51,6 +51,10 @@ export default class Toaster {
return this.notifyHandler(title, { ...settings, intent: 'none' });
};
notifyInProgress = (title, settings = {}) => {
return this.notifyHandler(title, { ...settings, intent: 'notify-in-progress' });
};
success = (title, settings = {}) => {
return this.notifyHandler(title, { ...settings, intent: 'success' });
};