Problem/Motivation

Add a new tab weight default value is wrong, the default value is count of all tabs +1

Steps to reproduce

Create a blocktab
Add three views tabs A,B,C
Show row weights
Delete the tab A
check the weight after the Add new tab button, default value is wrong
wrong weight img

Proposed resolution

Get the maximum value of the weight in the tabs, and set default value as maximum+1

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#5 3382472-5.patch1.28 KBOmega_yang
#4 3382472.patch1.25 KBconnbi
2023-08-22_16-32.png52.03 KBconnbi

Comments

bijiaxing created an issue. See original summary.

connbi’s picture

Issue summary: View changes
connbi’s picture

Version: 2.0.0-alpha1 » 8.x-1.0
connbi’s picture

StatusFileSize
new1.25 KB
Omega_yang’s picture

StatusFileSize
new1.28 KB

Update patch for display error when add new blocktab.

When tab is empty, it will display error, so we need to judge if tab is empty.

Omega_yang’s picture

Status: Active » Needs review