1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 00:20:07 +00:00

fix md convert to sdoc (#6331)

This commit is contained in:
Michael An
2024-07-11 12:09:57 +08:00
committed by GitHub
parent 0ea64b20a5
commit 00713041c6
9 changed files with 22 additions and 8 deletions

View File

@@ -21,6 +21,8 @@ class Alert extends React.PureComponent {
return 'sf3-font sf3-font-exclamation-circle';
case 'danger':
return 'sf3-font sf3-font-exclamation-circle';
case 'notify-in-progress':
return 'loading-icon';
default:
return 'sf3-font sf3-font-check-circle';
}

View File

@@ -25,7 +25,7 @@ export default class Toast extends React.PureComponent {
/**
* The type of the alert.
*/
intent: PropTypes.oneOf(['none', 'success', 'warning', 'danger']).isRequired,
intent: PropTypes.oneOf(['none', 'success', 'warning', 'danger', 'notify-in-progress']).isRequired,
/**
* The title of the alert.

View File

@@ -78,6 +78,15 @@
color: rgb(236, 76, 71);
}
.seahub-toast-alert-container.notify-in-progress {
border-left: 3px solid rgb(16, 112, 202);
color: rgb(16, 112, 202);
}
.seahub-toast-alert-container.notify-in-progress .loading-icon {
margin: 0;
}
.seahub-toast-alert-container .toast-alert-icon {
margin-right: 10px;
width: 14px;

View File

@@ -52,6 +52,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' });
};

View File

@@ -1303,7 +1303,6 @@ class LibContentView extends React.Component {
return dirent;
});
if (dirent) {
// dirent.isSelected = true;
this.setState({
direntList: direntList,
isDirentSelected: true,