fix: rerender after pane rename
This commit is contained in:
parent
4af28fbb65
commit
f661fc928b
|
|
@ -40,6 +40,7 @@ pub(crate) fn request_changes_ui(request: &Request) -> bool {
|
|||
| Method::TabRename(_)
|
||||
| Method::TabClose(_)
|
||||
| Method::PaneSplit(_)
|
||||
| Method::PaneRename(_)
|
||||
| Method::PaneReportAgent(_)
|
||||
| Method::PaneClearAgentAuthority(_)
|
||||
| Method::PaneReleaseAgent(_)
|
||||
|
|
|
|||
|
|
@ -1397,9 +1397,17 @@ mod tests {
|
|||
},
|
||||
),
|
||||
};
|
||||
let pane_rename = crate::api::schema::Request {
|
||||
id: "req_3".into(),
|
||||
method: crate::api::schema::Method::PaneRename(crate::api::schema::PaneRenameParams {
|
||||
pane_id: "w_1-1".into(),
|
||||
label: Some("logs".into()),
|
||||
}),
|
||||
};
|
||||
|
||||
assert!(!crate::api::request_changes_ui(&read_only));
|
||||
assert!(crate::api::request_changes_ui(&mutating));
|
||||
assert!(crate::api::request_changes_ui(&pane_rename));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Reference in New Issue