tweak verbiage and make other UI tweaks

This commit is contained in:
2024-07-28 17:09:57 -06:00
parent d4cafd2f79
commit 44ac98faa8
4 changed files with 26 additions and 10 deletions

View File

@@ -902,18 +902,19 @@ export default class ContactsView extends Vue {
3000,
);
}
} else if (result.error) {
} else {
console.error("Got strange result from setting visibility:", result);
const message =
(result.error as string) || "Could not set visibility on the server.";
this.$notify(
{
group: "alert",
type: "danger",
title: "Error Setting Visibility",
text: result.error as string,
text: message,
},
5000,
);
} else {
console.error("Got strange result from setting visibility:", result);
}
}