mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 09:21:54 +00:00
fix md convert to sdoc (#6331)
This commit is contained in:
@@ -21,6 +21,8 @@ class Alert extends React.PureComponent {
|
|||||||
return 'sf3-font sf3-font-exclamation-circle';
|
return 'sf3-font sf3-font-exclamation-circle';
|
||||||
case 'danger':
|
case 'danger':
|
||||||
return 'sf3-font sf3-font-exclamation-circle';
|
return 'sf3-font sf3-font-exclamation-circle';
|
||||||
|
case 'notify-in-progress':
|
||||||
|
return 'loading-icon';
|
||||||
default:
|
default:
|
||||||
return 'sf3-font sf3-font-check-circle';
|
return 'sf3-font sf3-font-check-circle';
|
||||||
}
|
}
|
||||||
|
@@ -25,7 +25,7 @@ export default class Toast extends React.PureComponent {
|
|||||||
/**
|
/**
|
||||||
* The type of the alert.
|
* 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.
|
* The title of the alert.
|
||||||
|
@@ -78,6 +78,15 @@
|
|||||||
color: rgb(236, 76, 71);
|
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 {
|
.seahub-toast-alert-container .toast-alert-icon {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
width: 14px;
|
width: 14px;
|
||||||
|
@@ -52,6 +52,10 @@ export default class Toaster {
|
|||||||
return this.notifyHandler(title, { ...settings, intent: 'none' });
|
return this.notifyHandler(title, { ...settings, intent: 'none' });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
notifyInProgress = (title, settings = {}) => {
|
||||||
|
return this.notifyHandler(title, { ...settings, intent: 'notify-in-progress' });
|
||||||
|
};
|
||||||
|
|
||||||
success = (title, settings = {}) => {
|
success = (title, settings = {}) => {
|
||||||
return this.notifyHandler(title, { ...settings, intent: 'success' });
|
return this.notifyHandler(title, { ...settings, intent: 'success' });
|
||||||
};
|
};
|
||||||
|
@@ -1303,7 +1303,6 @@ class LibContentView extends React.Component {
|
|||||||
return dirent;
|
return dirent;
|
||||||
});
|
});
|
||||||
if (dirent) {
|
if (dirent) {
|
||||||
// dirent.isSelected = true;
|
|
||||||
this.setState({
|
this.setState({
|
||||||
direntList: direntList,
|
direntList: direntList,
|
||||||
isDirentSelected: true,
|
isDirentSelected: true,
|
||||||
|
Reference in New Issue
Block a user