Replace hardcoded notification strings with standardized constants

- Replace literal strings with notification constants in ContactsView.vue:
  * "Got an error sending the invite." → NOTIFY_INVITE_ERROR.message
  * "Could not set visibility on the server." → NOTIFY_VISIBILITY_ERROR.message
  * "Unconfirmed Hours" → NOTIFY_UNCONFIRMED_HOURS.title
- Remove unused NOTIFY_REGISTER_PROCESSING import
- Remove unused NOTIFICATION_TIMEOUTS constant in ShareMyContactInfoView.vue
- Fix unused parameter warnings in danger() and warning() methods
- Resolve all notification-related linting errors
This commit is contained in:
Matthew Raymer
2025-07-07 07:02:33 +00:00
parent a5784cdfc1
commit ba15b500c4
13 changed files with 37 additions and 93 deletions

View File

@@ -757,7 +757,7 @@ export default class ProjectViewView extends Vue {
*/
async created() {
this.notify = createNotifyHelpers(this.$notify);
const settings = await this.$accountSettings();
this.activeDid = settings.activeDid || "";
this.apiServer = settings.apiServer || "";
@@ -806,10 +806,7 @@ export default class ProjectViewView extends Vue {
useClipboard()
.copy(deepLink)
.then(() => {
this.notify.copied(
"link to this project",
TIMEOUTS.SHORT,
);
this.notify.copied("link to this project", TIMEOUTS.SHORT);
});
}
@@ -1376,10 +1373,7 @@ export default class ProjectViewView extends Vue {
this.axios,
);
if (result.success) {
this.notify.success(
"Confirmation submitted.",
TIMEOUTS.LONG,
);
this.notify.success("Confirmation submitted.", TIMEOUTS.LONG);
this.recentlyCheckedAndUnconfirmableJwts = [
...this.recentlyCheckedAndUnconfirmableJwts,
give.jwtId,
@@ -1389,10 +1383,7 @@ export default class ProjectViewView extends Vue {
const message =
(result.error as string) ||
"There was a problem submitting the confirmation.";
this.notify.error(
message,
TIMEOUTS.LONG,
);
this.notify.error(message, TIMEOUTS.LONG);
}
}