mirror of
https://github.com/openharmony/applications_notes.git
synced 2026-07-18 18:24:27 -04:00
fix operateNoteComp bug
Signed-off-by: zhanghongchuan33 <zhanghongchuan6@huawei.com>
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user