Working on time tracker

This commit is contained in:
Hillel Coren 2017-09-19 21:44:11 +03:00
parent 75bc40bcce
commit ad33481c5e

View File

@ -120,7 +120,7 @@
</span> </span>
<center style="padding-top: 30px"> <center style="padding-top: 30px">
<span data-bind="visible: ! selectedTask().isNew"> <span data-bind="visible: selectedTask().isCreated">
{!! DropdownButton::normal(trans('texts.archive')) {!! DropdownButton::normal(trans('texts.archive'))
->withAttributes([ ->withAttributes([
'class' => 'archive-dropdown', 'class' => 'archive-dropdown',
@ -423,6 +423,10 @@
return ! self.public_id(); return ! self.public_id();
}); });
self.isCreated = ko.computed(function() {
return self.public_id();
});
self.showActionButton = function() { self.showActionButton = function() {
self.actionButtonVisible(true); self.actionButtonVisible(true);
} }