Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] <title>Alarm module-Threshold rule list editing module pop-up window is closed and a new one is created at this time. The last edited data is retained in the pop-up window. #1653

Open
1 task done
qiqiqiqiya opened this issue Mar 14, 2024 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@qiqiqiqiya
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

No response

Expected Behavior

No response

Steps To Reproduce

No response

Environment

HertzBeat version(s):

Debug logs

No response

Anything else?

No response

@qiqiqiqiya qiqiqiqiya added the bug Something isn't working label Mar 14, 2024
@hertzbeat hertzbeat changed the title [BUG] <title>告警模块-阈值规则列表编辑模块弹窗关闭后,这个时候新建,弹窗内保留的还是上次编辑的数据 [BUG] <title>Alarm module-Threshold rule list editing module pop-up window is closed and a new one is created at this time. The last edited data is retained in the pop-up window. Mar 14, 2024
@tomsun28 tomsun28 added the good first issue Good for newcomers label Mar 14, 2024
@tomsun28
Copy link
Contributor

👍Received, thanks.

@starmilkxin
Copy link
Contributor

This may be due to the failure to reset data objects when the page is closed, such as cascadeValues:

f01cab06d7bc547872da23004c1d0cb

And alertRules:

0d59946ccf7614bc19f39eba09e53c5

Reset it when closing the page, which seems to have resolved the issue for now:

  onManageModalCancel() {
    this.cascadeValues = [];
    this.alertRules = [{}];
    this.isExpr = false;
    this.isManageModalVisible = false;
  }

Edit page:

image

After closing/canceling the page:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants