Working on time tracker

This commit is contained in:
Hillel Coren 2017-09-26 12:48:15 +03:00
parent f807883d3f
commit b0b46606f8

View File

@ -509,7 +509,6 @@
} }
} else { } else {
self.update(response); self.update(response);
model.isStartEnabled(true);
if (self.isRunning()) { if (self.isRunning()) {
if (self.time_log().length == 1) { if (self.time_log().length == 1) {
toastr.success("{{ trans('texts.started_task') }}"); toastr.success("{{ trans('texts.started_task') }}");
@ -528,6 +527,7 @@
}).always(function() { }).always(function() {
setTimeout(function() { setTimeout(function() {
model.isSaveEnabled(true); model.isSaveEnabled(true);
model.isStartEnabled(true);
}, 1000); }, 1000);
}); });
} }