1413 ticket.summary refactor checkbox triple state
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
a19f9e003d
commit
e6d6e63255
|
@ -43,7 +43,7 @@
|
||||||
</span>
|
</span>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td expand>
|
<vn-td expand>
|
||||||
<span
|
<span
|
||||||
class="link"
|
class="link"
|
||||||
ng-click="$ctrl.showWorkerDescriptor($event, request.atenderFk)">
|
ng-click="$ctrl.showWorkerDescriptor($event, request.atenderFk)">
|
||||||
{{::request.atender.user.nickname | dashIfEmpty}}
|
{{::request.atender.user.nickname | dashIfEmpty}}
|
||||||
|
@ -63,6 +63,7 @@
|
||||||
<vn-check vn-one
|
<vn-check vn-one
|
||||||
field="::request.isOk"
|
field="::request.isOk"
|
||||||
triple-state="true"
|
triple-state="true"
|
||||||
|
title="{{$ctrl.getRequestState(request.isOk)}}"
|
||||||
disabled="true">
|
disabled="true">
|
||||||
</vn-check>
|
</vn-check>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
|
|
|
@ -67,6 +67,17 @@ class Controller {
|
||||||
this.$.workerDescriptor.parent = event.target;
|
this.$.workerDescriptor.parent = event.target;
|
||||||
this.$.workerDescriptor.show();
|
this.$.workerDescriptor.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getRequestState(state) {
|
||||||
|
switch (state) {
|
||||||
|
case null:
|
||||||
|
return 'New';
|
||||||
|
case false:
|
||||||
|
return 'Denied';
|
||||||
|
case true:
|
||||||
|
return 'Acepted';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Controller.$inject = ['$scope', '$stateParams'];
|
Controller.$inject = ['$scope', '$stateParams'];
|
||||||
|
|
|
@ -184,8 +184,11 @@
|
||||||
</span>
|
</span>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td number>
|
<vn-td number>
|
||||||
|
|
||||||
<vn-check vn-one
|
<vn-check vn-one
|
||||||
field="::request.isOk"
|
field="::request.isOk"
|
||||||
|
triple-state="true"
|
||||||
|
title="{{$ctrl.getRequestState(request.isOk)}}"
|
||||||
disabled="true">
|
disabled="true">
|
||||||
</vn-check>
|
</vn-check>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
|
|
|
@ -84,6 +84,17 @@ class Controller {
|
||||||
this.getSummary();
|
this.getSummary();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getRequestState(state) {
|
||||||
|
switch (state) {
|
||||||
|
case null:
|
||||||
|
return 'New';
|
||||||
|
case false:
|
||||||
|
return 'Denied';
|
||||||
|
case true:
|
||||||
|
return 'Acepted';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Controller.$inject = ['$scope', '$state', '$http', 'vnApp', '$translate'];
|
Controller.$inject = ['$scope', '$state', '$http', 'vnApp', '$translate'];
|
||||||
|
|
Loading…
Reference in New Issue