mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Clean code
This commit is contained in:
parent
afa74ebb4b
commit
9447f1c5a8
1 changed files with 2 additions and 3 deletions
|
@ -111,7 +111,8 @@ func renderAttributeViewGroups(viewable av.Viewable, attrView *av.AttributeView,
|
|||
// 如果存在分组的话渲染分组视图
|
||||
|
||||
for _, groupView := range view.Groups {
|
||||
switch groupView.GetGroupValue() {
|
||||
groupView.Name = groupView.GetGroupValue()
|
||||
switch groupView.Name {
|
||||
case groupValueDefault:
|
||||
groupView.Name = fmt.Sprintf(Conf.language(264), groupKey.Name)
|
||||
case groupValueNotInRange:
|
||||
|
@ -130,8 +131,6 @@ func renderAttributeViewGroups(viewable av.Viewable, attrView *av.AttributeView,
|
|||
groupView.Name = fmt.Sprintf(Conf.language(263), 7)
|
||||
case groupValueNext30Days:
|
||||
groupView.Name = fmt.Sprintf(Conf.language(263), 30)
|
||||
default:
|
||||
groupView.Name = groupView.GetGroupValue()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue