mirror of
https://gitee.com/openharmony/applications_notes
synced 2024-12-04 05:49:30 +00:00
fix operateNoteComp bug
Signed-off-by: zhanghongchuan33 <zhanghongchuan6@huawei.com>
This commit is contained in:
parent
e36aa30f29
commit
3487cb1c4b
@ -733,7 +733,7 @@ export struct OperateNoteCompForPortrait {
|
||||
})
|
||||
|
||||
opacityChange() {
|
||||
if (this.CheckedNoteArray.length == 0) {
|
||||
if (this.CheckedNoteArray.length == 0 && this.longpress == true) {
|
||||
this.greyOpacity = true
|
||||
LogUtil.info(TAG, "none checked array")
|
||||
} else {
|
||||
@ -787,8 +787,8 @@ export struct OperateNoteCompForPortrait {
|
||||
})
|
||||
}
|
||||
NoteUtil.unsetAllNotesChecked(this.CheckedNoteArray)
|
||||
this.refreshFlag = (this.refreshFlag == 0 ? 1 : 0)
|
||||
this.longpress = false
|
||||
this.refreshFlag = (this.refreshFlag == 0 ? 1 : 0)
|
||||
this.selectedNoteData = NoteUtil.getFirstNoteData(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid)
|
||||
// save continue data
|
||||
let continueNote: string = JSON.stringify(this.selectedNoteData.toNoteObject())
|
||||
|
Loading…
Reference in New Issue
Block a user