Skip to content

Commit

Permalink
confirm setting active
Browse files Browse the repository at this point in the history
  • Loading branch information
KlemenSpruk committed Oct 12, 2023
1 parent 2a7471d commit 3bbafcc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions django_project_base/management/commands/confirm_setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def handle(self, *args, **options):
)
ProjectSettingConfirmedEvent(user=None).trigger(payload=setting)
# TODO: send email when owner is known
# # TODO: SEND THIS AS SYSTEM MSG WHEN PR IS MERGED
# SystemEMailNotification(
# message=DjangoProjectBaseMessage(
# subject=f"{__('Project setting confirmed')}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def handle(self, *args, **options):
"pending_value": setting.python_pending_value,
}
# if to := getattr(settings, "ADMINS", getattr(settings, "MANAGERS", [])):
# TODO: SEND THIS AS SYSTEM MSG WHEN PR IS MERGED
# # TODO: SEND THIS AS SYSTEM MSG WHEN PR IS MERGED
# EMailNotificationWithListOfEmails(
# message=DjangoProjectBaseMessage(
# subject=_("Pending settings report"),
Expand Down
5 changes: 0 additions & 5 deletions django_project_base/rest/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@ def __init__(self, *args, is_filter: bool = False, **kwds):
position=TablePosition.ROW_END,
label="Confirm active",
name="confirm-setting-active",
display_style=dict(
asButton=True,
showIcon=False,
showLabel=False,
),
),
)

Expand Down
4 changes: 2 additions & 2 deletions vue/components/project-settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ const actionResetPending = async (action:Action, payload: FormPayload) => {
const actionConfirmSettingActive = async (action:Action, payload: FormPayload) => {
const activeData = {};
// @ts-ignore
active[PROFILE_TABLE_PRIMARY_KEY_PROPERTY_NAME] = payload[PROFILE_TABLE_PRIMARY_KEY_PROPERTY_NAME];
activeData[PROFILE_TABLE_PRIMARY_KEY_PROPERTY_NAME] = payload[PROFILE_TABLE_PRIMARY_KEY_PROPERTY_NAME];
apiClient.post(
'/project-settings/reset-pending',
'/project-settings/confirm-setting-active',
activeData,
).then(() => {
refreshSettingsLogic();
Expand Down

0 comments on commit 3bbafcc

Please sign in to comment.