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:
@@ -281,11 +281,11 @@ export default {
|
|||||||
const msg = gain != null
|
const msg = gain != null
|
||||||
? this.$t('falukant.reputation.actions.success', { gain, cost })
|
? this.$t('falukant.reputation.actions.success', { gain, cost })
|
||||||
: this.$t('falukant.reputation.actions.successSimple');
|
: 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()]);
|
await Promise.all([this.loadReputation(), this.loadReputationActions()]);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const errText = e?.response?.data?.error || e?.message || String(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 {
|
} finally {
|
||||||
this.runningActionId = null;
|
this.runningActionId = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user