qishibo/AnotherRedisDesktopManager · warning

this.$t('message.group_name_required')

Error message

this.$t('message.group_name_required')

What it means

Element UI error toast raised in handleNewGroup when the new group name is empty after trim(); storage.addGroup is never called. Connection groups are purely client-side records in localStorage ('connection_groups' via src/storage.js), so this is local form validation, not a server error.

Source

Thrown at src/components/NewConnectionDialog.vue:320

    dialogVisible(visible) {
      if (!visible) {
        this.finishTest();
      }
    },
  },
  methods: {
    loadGroups() {
      this.groups = storage.getGroups();
    },
    openNewGroupDialog() {
      this.newGroupName = '';
      this.showGroupDialog = true;
    },
    handleNewGroup() {
      const name = this.newGroupName.trim();

      if (!name) {
        return this.$message.error(this.$t('message.group_name_required'));
      }

      const group = storage.addGroup(name);

      if (!group) {
        return this.$message.error(this.$t('message.group_exists'));
      }

      this.loadGroups();
      this.connection.groupId = group.id;

      this.showGroupDialog = false;
      this.$message.success(this.$t('message.add_success'));
      this.$bus.$emit('groups-updated');
    },
    show() {
      this.dialogVisible = true;
      this.resetFields();

View on GitHub (pinned to c149855106)

Solutions

  1. Type a non-empty (non-whitespace) group name and confirm again
  2. Disable the Confirm button while the trimmed input is empty so the error path is unreachable
  3. Trim the model on @input so stray spaces never reach the submit handler

Example fix

// before (NewConnectionDialog.vue)
<el-button type="primary" @click="handleNewGroup">OK</el-button>

// after
<el-button type="primary" :disabled="!newGroupName.trim()" @click="handleNewGroup">OK</el-button>
Defensive patterns

Strategy: validation

Validate before calling

// before submit
const name = this.newGroupName.trim();
if (!name) {
  this.$message.warning(this.$t('message.group_name_required'));
  return;
}
// or bind the confirm button: :disabled="!newGroupName.trim()"

Prevention

When it happens

Trigger: Opening the new-group dialog (openNewGroupDialog clears newGroupName to '') and clicking Confirm while the input is empty or whitespace-only: const name = this.newGroupName.trim(); if (!name) -> toast and return.

Common situations: Clicking Confirm before typing, pasting a whitespace-only string, double-submitting the dialog, or IME/keyboard states that leave the field visually non-empty but logically blank.

Related errors


AI-assisted analysis of qishibo/AnotherRedisDesktopManager@c149855106 (2026-08-22). Data as JSON: /api/errors/8c349781747486a5. Report an issue: GitHub.