Skip to content

Commit

Permalink
Add id to repo files details
Browse files Browse the repository at this point in the history
  • Loading branch information
bancek committed Dec 1, 2023
1 parent 5ae6bde commit 0fd9309
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ fn expected_details_state(
mut patch: impl FnMut(&mut RepoFilesDetails),
) -> RepoFilesDetailsState {
let mut details = RepoFilesDetails {
id: 1,
options: RepoFilesDetailsOptions {
autosave_interval: Duration::from_secs(20),
load_content: FilesFilter {
Expand Down
1 change: 1 addition & 0 deletions vault-core/src/repo_files_details/mutations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ pub fn create(
let status = create_status(state, location.as_ref());

let details = RepoFilesDetails {
id: details_id,
options,
location: location.ok(),
status,
Expand Down
1 change: 1 addition & 0 deletions vault-core/src/repo_files_details/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ pub struct RepoFilesDetailsOptions {

#[derive(Debug, Clone, PartialEq)]
pub struct RepoFilesDetails {
pub id: u32,
pub options: RepoFilesDetailsOptions,
pub location: Option<RepoFilesDetailsLocation>,
pub status: Status<LoadFilesError>,
Expand Down

0 comments on commit 0fd9309

Please sign in to comment.