Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consent fix for levante #35

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/ConsentModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import DOMPurify from 'dompurify';
import _lowerCase from 'lodash/lowerCase';
import { TOAST_SEVERITIES, TOAST_DEFAULT_LIFE_DURATION } from '@/constants/toasts';
import { useRouter } from 'vue-router';

const i18n = useI18n();
const router = useRouter();
Expand All @@ -51,7 +52,7 @@
onMounted(() => {
dialogVisible.value = true;

const acceptIcon = computed(() => (isSubmitting.value ? 'pi pi-spin pi-spinner mr-2' : 'pi pi-check mr-2'));

Check failure on line 55 in src/components/ConsentModal.vue

View workflow job for this annotation

GitHub Actions / Lint

'acceptIcon' is assigned a value but never used

confirm.require({
group: 'templating',
Expand Down Expand Up @@ -94,7 +95,7 @@
}
},
reject: () => {
authStore.signOut();

Check failure on line 98 in src/components/ConsentModal.vue

View workflow job for this annotation

GitHub Actions / Lint

'authStore' is not defined
router.push({ name: 'SignOut' });
},
});
Expand Down
1 change: 1 addition & 0 deletions src/pages/HomeAdministrator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ import useUserType from '@/composables/useUserType';
import useUserClaimsQuery from '@/composables/queries/useUserClaimsQuery';
import useAdministrationsListQuery from '@/composables/queries/useAdministrationsListQuery';
import CardAdministration from '@/components/CardAdministration.vue';
import { isLevante } from '@/helpers';
const initialized = ref(false);
const pageLimit = ref(10);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/HomeParticipant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
:options="sortedUserAdministrations ?? []"
:option-label="
userAssignments.every((administration) => administration.publicName) ? 'publicName' : 'name'
"
"
input-id="dd-assignment"
data-cy="dropdown-select-administration"
@change="toggleShowOptionalAssessments"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/HomeSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ import useUserClaimsQuery from '@/composables/queries/useUserClaimsQuery';
import useUpdateConsentMutation from '@/composables/mutations/useUpdateConsentMutation';
import { CONSENT_TYPES } from '@/constants/consentTypes';
import { APP_ROUTES } from '@/constants/routes';
import { isLevante } from '@/helpers';
const HomeParticipant = defineAsyncComponent(() => import('@/pages/HomeParticipant.vue'));
const HomeAdministrator = defineAsyncComponent(() => import('@/pages/HomeAdministrator.vue'));
const ConsentModal = defineAsyncComponent(() => import('@/components/ConsentModal.vue'));
const isLevante = import.meta.env.MODE === 'LEVANTE';
const authStore = useAuthStore();
const { roarfirekit, ssoProvider } = storeToRefs(authStore);
Expand Down
2 changes: 0 additions & 2 deletions src/router/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { createRouter, createWebHistory } from 'vue-router';
import { useAuthStore } from '@/store/auth';
import { useGameStore } from '@/store/game';
import { useSurveyStore } from '@/store/survey';
import _get from 'lodash/get';
import { pageTitlesEN, pageTitlesUS, pageTitlesES, pageTitlesCO } from '@/translations/exports';
import { isLevante } from '@/helpers';
Expand Down
Loading