forked from trent_larson/crowd-funder-for-time-pwa
Migrate DiscoverView.vue to Enhanced Triple Migration Pattern
- Replaced all databaseUtil and direct PlatformServiceFactory usage with PlatformServiceMixin methods - Removed all raw SQL queries from the component - Centralized all notification messages in src/constants/notifications.ts - Replaced direct $notify calls with notification helpers and TIMEOUTS constants - Streamlined template logic (tab classes via computed properties) - Updated migration documentation and security audit - Ran lint-fix; no errors remain Ready for human testing and validation.
This commit is contained in:
@@ -792,12 +792,9 @@ export default class ConfirmGiftView extends Vue {
|
||||
* Verifies user eligibility and handles confirmation workflow
|
||||
*/
|
||||
async confirmConfirmClaim(): Promise<void> {
|
||||
this.notify.confirm(
|
||||
NOTIFY_GIFT_CONFIRM_MODAL.message,
|
||||
async () => {
|
||||
await this.confirmClaim();
|
||||
},
|
||||
);
|
||||
this.notify.confirm(NOTIFY_GIFT_CONFIRM_MODAL.message, async () => {
|
||||
await this.confirmClaim();
|
||||
});
|
||||
}
|
||||
|
||||
// similar code is found in ProjectViewView
|
||||
@@ -830,10 +827,7 @@ export default class ConfirmGiftView extends Vue {
|
||||
);
|
||||
} else {
|
||||
logger.error("Got error submitting the confirmation:", result);
|
||||
this.notify.error(
|
||||
NOTIFY_GIFT_CONFIRMATION_ERROR.message,
|
||||
TIMEOUTS.LONG,
|
||||
);
|
||||
this.notify.error(NOTIFY_GIFT_CONFIRMATION_ERROR.message, TIMEOUTS.LONG);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user