diff --git a/langs/en-ca.json b/langs/en-ca.json index 4e43a1f..908a714 100644 --- a/langs/en-ca.json +++ b/langs/en-ca.json @@ -160,7 +160,8 @@ "migration-in-progress": "Applying data migrations for version {version}. Please do NOT refresh the window while this warning is present." }, "success": { - "saved-default-attributes": "Successfully saved default Actor attributes", + "saved-default-attributes": "Successfully saved default Actor attributes.", + "removed-default-attributes": "The default attributes for Actors have been removed.", "migration-successful": "Data migrations for version {version} were successful." } } diff --git a/module/hooks/renderSettingsConfig.mjs b/module/hooks/renderSettingsConfig.mjs index a75c55c..d488af3 100644 --- a/module/hooks/renderSettingsConfig.mjs +++ b/module/hooks/renderSettingsConfig.mjs @@ -20,6 +20,8 @@ Hooks.on(`renderSettingsConfig`, (app, html) => { button.innerHTML = _loc(`taf.settings.actorDefaultAttributes.label`); button.addEventListener(`click`, () => { game.settings.set(__ID__, `actorDefaultAttributes`, undefined); + formGroup.remove(); + ui.notifications.success(_loc(`taf.notifs.success.removed-default-attributes`)); }); const hint = document.createElement(`p`);