Fix bug where we tried to `add` files that were deleted
We now pass deleted files separately in the git_repo API call
This commit is contained in:
parent
00fc28dab9
commit
8c67f5d4d0
|
@ -29,13 +29,23 @@ export class GitRepoDialogComponent {
|
||||||
{
|
{
|
||||||
key: 'changed',
|
key: 'changed',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
defaultValue: this.listify(data.changes),
|
defaultValue: this.listify(data.modified),
|
||||||
templateOptions: {
|
templateOptions: {
|
||||||
label: 'These are the changed files',
|
label: 'These are the changed files',
|
||||||
rows: 4,
|
rows: 4,
|
||||||
readonly: true,
|
readonly: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: 'deleted',
|
||||||
|
type: 'textarea',
|
||||||
|
defaultValue: this.listify(data.deleted),
|
||||||
|
templateOptions: {
|
||||||
|
label: 'These are the deleted files',
|
||||||
|
rows: 4,
|
||||||
|
readonly: true,
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: 'untracked',
|
key: 'untracked',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
|
|
Loading…
Reference in New Issue