Cleanup.
This commit is contained in:
parent
b3f0199036
commit
8eaa3b9039
@ -39,13 +39,13 @@ export class OperationRowComponent {
|
||||
operation.pointed = !operation.pointed;
|
||||
|
||||
this.save(operation);
|
||||
};
|
||||
}
|
||||
|
||||
toggleCanceled(operation) {
|
||||
operation.canceled = !operation.canceled;
|
||||
|
||||
this.save(operation);
|
||||
};
|
||||
}
|
||||
|
||||
save(operation) {
|
||||
operation.confirmed = true;
|
||||
@ -67,13 +67,11 @@ export class OperationRowComponent {
|
||||
|
||||
modal.componentInstance.operation = this.operation;
|
||||
|
||||
var id = operation.id;
|
||||
|
||||
modal.result.then((operation: Operation) => {
|
||||
this.delete(operation);
|
||||
}, (reason) => {
|
||||
})
|
||||
};
|
||||
}, () => {
|
||||
});
|
||||
}
|
||||
|
||||
delete(operation) {
|
||||
var id = operation.id;
|
||||
@ -89,5 +87,5 @@ export class OperationRowComponent {
|
||||
id + ':<br />' + result
|
||||
);
|
||||
});
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user