Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clicking the cog icon opens a QuickActionsBox to edit all and control…
… project sharing
- Loading branch information
Showing
6 changed files
with
136 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
apps/src/templates/manageStudents/ManageStudentsActionsHeaderCell.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React, {Component} from 'react'; | ||
import QuickActionsCell from "../tables/QuickActionsCell"; | ||
import PopUpMenu, {MenuBreak} from "@cdo/apps/lib/ui/PopUpMenu"; | ||
import i18n from '@cdo/locale'; | ||
|
||
export default class ManageStudentsActionsHeaderCell extends Component { | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<QuickActionsCell | ||
type="header" | ||
> | ||
<PopUpMenu.Item | ||
onClick={() => console.log('edit all was clicked!')} | ||
> | ||
{i18n.editAll()} | ||
</PopUpMenu.Item> | ||
<MenuBreak/> | ||
<PopUpMenu.Item | ||
onClick={() => console.log('control project sharing was clicked!')} | ||
> | ||
{i18n.controlProjectSharing()} | ||
</PopUpMenu.Item> | ||
</QuickActionsCell> | ||
</div> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters