Skip to content

Commit

Permalink
fix: #1673 add IDIM warn notification message (#1674)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigyu authored Nov 26, 2024
1 parent 1cf9798 commit da55706
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
6 changes: 6 additions & 0 deletions frontend/src/constants/Notifications.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { h } from "vue";

export const IDIM_DEPENDENCY_FAILURE_MESSAGE = h("p", null, [
h("strong", null, "Notice!"),
" We are currently working to resolve issues with granting user access. Please check back on November 27, 2024, at 12:00 PM for updates.",
]);
9 changes: 7 additions & 2 deletions frontend/src/views/AddAppPermission/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
AdminMgmtApiService,
AppActlApiService,
} from "@/services/ApiServiceFactory";
import { EnvironmentSettings } from "@/services/EnvironmentSettings";
import { isProdAppSelectedOnProdEnv } from "@/services/utils";
import type { BreadCrumbType } from "@/types/BreadCrumbTypes";
import type { AddAppPermissionRouteProps } from "@/types/RouteTypes";
Expand Down Expand Up @@ -50,10 +49,11 @@ import { useConfirm } from "primevue/useconfirm";
import { Form } from "vee-validate";
import { computed, ref, watch } from "vue";
import { useRouter } from "vue-router";
import NotificationMessage from "@/components/UI/NotificationMessage.vue";
import { IDIM_DEPENDENCY_FAILURE_MESSAGE } from "@/constants/Notifications";
const router = useRouter();
const auth = useAuth();
const env = new EnvironmentSettings();
const props = defineProps<AddAppPermissionRouteProps>();
Expand Down Expand Up @@ -280,6 +280,11 @@ const onSubmit = () => {

<template>
<div class="add-app-permission-container">
<NotificationMessage
severity="warn"
:message="IDIM_DEPENDENCY_FAILURE_MESSAGE"
hide-severity-text
/>
<ConfirmDialog
group="addDelegatedAdmin"
class="delegated-admin-confrim-dialog"
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/views/AddFamPermission/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import CheckmarkIcon from "@carbon/icons-vue/es/checkmark/16";
import BreadCrumbs from "@/components/UI/BreadCrumbs.vue";
import type { BreadCrumbType } from "@/types/BreadCrumbTypes";
import { ManagePermissionsRoute } from "@/router/routes";
import NotificationMessage from "@/components/UI/NotificationMessage.vue";
import { IDIM_DEPENDENCY_FAILURE_MESSAGE } from "@/constants/Notifications";
import PageTitle from "@/components/UI/PageTitle.vue";
import { useMutation, useQuery, useQueryClient } from "@tanstack/vue-query";
import { AdminMgmtApiService } from "@/services/ApiServiceFactory";
Expand Down Expand Up @@ -123,6 +125,11 @@ const onSubmit = () => {

<template>
<div class="add-fam-permission-container">
<NotificationMessage
severity="warn"
:message="IDIM_DEPENDENCY_FAILURE_MESSAGE"
hide-severity-text
/>
<BreadCrumbs :crumbs="crumbs" />
<PageTitle
title="Add application admin"
Expand Down

0 comments on commit da55706

Please sign in to comment.