Update message dialog parameters in ReputationView component for improved clarity

- Swapped the order of parameters in the message dialog open method to prioritize message content over the title, enhancing user experience during reputation action notifications.
This commit is contained in:
Torsten Schulz (local)
2025-12-21 21:14:06 +01:00
parent 38dd51f757
commit 4f8b1e33fa

View File

@@ -281,11 +281,11 @@ export default {
const msg = gain != null
? this.$t('falukant.reputation.actions.success', { gain, cost })
: this.$t('falukant.reputation.actions.successSimple');
this.$root.$refs.messageDialog?.open(this.$t('falukant.reputation.actions.title'), msg);
this.$root.$refs.messageDialog?.open(msg, this.$t('falukant.reputation.actions.title'));
await Promise.all([this.loadReputation(), this.loadReputationActions()]);
} catch (e) {
const errText = e?.response?.data?.error || e?.message || String(e);
this.$root.$refs.messageDialog?.open(this.$t('falukant.reputation.actions.title'), errText);
this.$root.$refs.messageDialog?.open(errText, this.$t('falukant.reputation.actions.title'));
} finally {
this.runningActionId = null;
}