forked from PalisadoesFoundation/talawa-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'action-item-category' into action-items
- Loading branch information
Showing
18 changed files
with
1,168 additions
and
44 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
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
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,39 @@ | ||
import gql from 'graphql-tag'; | ||
|
||
/** | ||
* GraphQL mutation to create an action item category. | ||
* | ||
* @param name - Name of the ActionItemCategory. | ||
* @param organizationId - Organization to which the ActionItemCategory belongs. | ||
*/ | ||
|
||
export const CREATE_ACTION_ITEM_CATEGORY_MUTATION = gql` | ||
mutation CreateActionItemCategory($name: String!, $organizationId: ID!) { | ||
createActionItemCategory(name: $name, organizationId: $organizationId) { | ||
_id | ||
} | ||
} | ||
`; | ||
|
||
/** | ||
* GraphQL mutation to update an action item category. | ||
* | ||
* @param actionItemCategoryId - The id of the ActionItemCategory to be updated. | ||
* @param name - Updated name of the ActionItemCategory. | ||
* @param isDisabled - Updated disabled status of the ActionItemCategory. | ||
*/ | ||
|
||
export const UPDATE_ACTION_ITEM_CATEGORY_MUTATION = gql` | ||
mutation UpdateActionItemCategory( | ||
$actionItemCategoryId: ID! | ||
$name: String | ||
$isDisabled: Boolean | ||
) { | ||
updateActionItemCategory( | ||
id: $actionItemCategoryId | ||
data: { name: $name, isDisabled: $isDisabled } | ||
) { | ||
_id | ||
} | ||
} | ||
`; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import gql from 'graphql-tag'; | ||
|
||
/** | ||
* GraphQL query to retrieve action item categories by organization. | ||
* | ||
* @param id - The ID of the organization for which action item categories are being retrieved. | ||
* @returns The list of action item categories associated with the organization. | ||
*/ | ||
|
||
export const ACTION_ITEM_CATEGORY_LIST = gql` | ||
query ActionItemCategoriesByOrganization($organizationId: ID!) { | ||
actionItemCategoriesByOrganization(organizationId: $organizationId) { | ||
_id | ||
name | ||
isDisabled | ||
} | ||
} | ||
`; |
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
33 changes: 33 additions & 0 deletions
33
src/components/OrgActionItemCategories/OrgActionItemCategories.module.css
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,33 @@ | ||
.addButton { | ||
width: 7em; | ||
position: absolute; | ||
right: 1rem; | ||
top: 1rem; | ||
} | ||
|
||
.createModal { | ||
margin-top: 20vh; | ||
margin-left: 13vw; | ||
max-width: 80vw; | ||
} | ||
|
||
.icon { | ||
transform: scale(1.5); | ||
color: var(--bs-danger); | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.message { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
flex-direction: column; | ||
} | ||
|
||
.titlemodal { | ||
color: var(--bs-gray-600); | ||
font-weight: 600; | ||
font-size: 20px; | ||
margin-top: 1rem; | ||
width: 65%; | ||
} |
Oops, something went wrong.