mirror of
https://github.com/wassname/talk.git
synced 2026-07-24 13:20:47 +08:00
21 lines
706 B
JavaScript
21 lines
706 B
JavaScript
import * as actions from 'constants/moderation';
|
|
|
|
export const toggleModal = open => ({type: actions.TOGGLE_MODAL, open});
|
|
export const singleView = () => ({type: actions.SINGLE_VIEW});
|
|
|
|
// Ban User Dialog
|
|
export const showBanUserDialog = (user, commentId, showRejectedNote) => ({type: actions.SHOW_BANUSER_DIALOG, user, commentId, showRejectedNote});
|
|
export const hideBanUserDialog = (showDialog) => ({type: actions.HIDE_BANUSER_DIALOG, showDialog});
|
|
|
|
// hide shortcuts note
|
|
export const hideShortcutsNote = () => {
|
|
try {
|
|
window.localStorage.setItem('coral:shortcutsNote', 'hide');
|
|
} catch (e) {
|
|
|
|
// above will fail in Safari private mode
|
|
}
|
|
|
|
return {type: actions.HIDE_SHORTCUTS_NOTE};
|
|
};
|