CenterForDigitalHumanities / glossing-entries

Descriptions of new glosses and manuscripts, a data entry interface
1 stars 2 forks source link

Issue #201 - Refactor confirmation dialogs to use custom web component #202

Closed KamBustos closed 2 months ago

KamBustos commented 3 months ago

The main changes were made in shared.js: I refactored confirmation dialogs throughout the application to utilize a new custom web component, custom-confirm-modal.

Smaller changes include the change of some function's names. Can be found in the following files: deer-config.js, gloss-transcription.js, gloss-witness.js, manageGlossModal.js, ng.js.

What this enhancement does: This change encapsulates the confirmation logic and styling within a reusable component, improving code maintainability and consistency across the UI. By leveraging web components, we're enhancing the application's modularity and making future updates or style changes to confirmation dialogs simpler and more centralized.

No picture needed because it is an enhancement.