forked from jsnbuchanan/crowd-funder-for-time-pwa
Extract literal strings from complex modals to notification constants
Replace hardcoded text in raw $notify calls with centralized constants: - MembersList.vue: 2 complex modals (contact admission workflow) - ContactsView.vue: 2 complex modals (registration, onboarding meeting) - ProjectViewView.vue: 1 complex modal (claim confirmation) Preserves advanced modal features (promptToStopAsking, custom buttons, nested workflows) while standardizing text through constants for maintainability and future localization support.
This commit is contained in:
@@ -610,6 +610,7 @@ import { useClipboard } from "@vueuse/core";
|
||||
import { transformImageUrlForCors } from "../libs/util";
|
||||
import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin";
|
||||
import { createNotifyHelpers, TIMEOUTS } from "@/utils/notify";
|
||||
import { NOTIFY_CONFIRM_CLAIM } from "@/constants/notifications";
|
||||
/**
|
||||
* Project View Component
|
||||
* @author Matthew Raymer
|
||||
@@ -1339,8 +1340,8 @@ export default class ProjectViewView extends Vue {
|
||||
{
|
||||
group: "modal",
|
||||
type: "confirm",
|
||||
title: "Confirm",
|
||||
text: "Do you personally confirm that this is true?",
|
||||
title: NOTIFY_CONFIRM_CLAIM.title,
|
||||
text: NOTIFY_CONFIRM_CLAIM.text,
|
||||
onYes: async () => {
|
||||
await this.confirmClaim(give);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user