Skip to content

Commit

Permalink
feat(ux): 🚸 do not clear tgl edit description by default (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNZL committed Jun 14, 2023
1 parent 6951dc2 commit db5485c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TogglTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ internal async ValueTask<List<Result>> RequestEditEntry(CancellationToken token,
Action = c =>
{
this._state.SelectedIds.TimeEntry = timeEntry.Id;
this._context.API.ChangeQuery($"{query.ActionKeyword} {Settings.EditCommand} ", true);
this._context.API.ChangeQuery($"{query.ActionKeyword} {Settings.EditCommand} {timeEntry.RawDescription} ", true);
return false;
},
});
Expand Down Expand Up @@ -1349,7 +1349,7 @@ internal async ValueTask<List<Result>> RequestEditEntry(CancellationToken token,
{
this._state.SelectedIds.Project = null;
this._state.EditProject = TogglTrack.EditProjectState.ProjectSelected;
this._context.API.ChangeQuery($"{query.ActionKeyword} {Settings.EditCommand} no-project ", true);
this._context.API.ChangeQuery($"{query.ActionKeyword} {Settings.EditCommand} no-project {timeEntry.RawDescription} ", true);
return false;
},
},
Expand All @@ -1371,7 +1371,7 @@ internal async ValueTask<List<Result>> RequestEditEntry(CancellationToken token,
{
this._state.SelectedIds.Project = project.Id;
this._state.EditProject = TogglTrack.EditProjectState.ProjectSelected;
this._context.API.ChangeQuery($"{query.ActionKeyword} {Settings.EditCommand} {project.KebabName} ", true);
this._context.API.ChangeQuery($"{query.ActionKeyword} {Settings.EditCommand} {project.KebabName} {timeEntry.RawDescription} ", true);
return false;
},
})
Expand Down

0 comments on commit db5485c

Please sign in to comment.