refactor: merge workspace state into app root
This commit is contained in:
@@ -23,16 +23,16 @@ use ui::spinner::Spinner;
|
||||
use ui::tabs::{Tab, Tabs};
|
||||
|
||||
use super::helpers::{ForkCompare, truncate_label};
|
||||
use crate::app::AppRoot;
|
||||
use crate::repo::commit_diff::{CommitDiffView, DiffPane};
|
||||
use crate::repo::helpers::announcement_display_name;
|
||||
use crate::shared::event_list::commit_list;
|
||||
use crate::shared::log_dropped;
|
||||
use crate::shared::panels::open_detail;
|
||||
use crate::shared::progress::error_row;
|
||||
use crate::workspace::Workspace;
|
||||
|
||||
pub struct NewPullRequestView {
|
||||
workspace: WeakEntity<Workspace>,
|
||||
workspace: WeakEntity<AppRoot>,
|
||||
panel_id: SharedString,
|
||||
pub(super) store: Entity<RepoStore>,
|
||||
pub(super) repo_path: Option<PathBuf>,
|
||||
@@ -61,7 +61,7 @@ pub struct NewPullRequestView {
|
||||
|
||||
impl NewPullRequestView {
|
||||
pub fn new(
|
||||
workspace: WeakEntity<Workspace>,
|
||||
workspace: WeakEntity<AppRoot>,
|
||||
panel_id: SharedString,
|
||||
store: Entity<RepoStore>,
|
||||
window: &mut Window,
|
||||
|
||||
Reference in New Issue
Block a user