5918-worker.time-control_resend #1685
|
@ -1,6 +1,6 @@
|
||||||
const models = require('vn-loopback/server/server').models;
|
const models = require('vn-loopback/server/server').models;
|
||||||
|
|
||||||
describe('workerTimeControl getMailStates()', () => {
|
describe('updateWorkerTimeControlMail()', () => {
|
||||||
it('should update WorkerTimeControlMail if exist record', async() => {
|
it('should update WorkerTimeControlMail if exist record', async() => {
|
||||||
const tx = await models.WorkerTimeControlMail.beginTransaction({});
|
const tx = await models.WorkerTimeControlMail.beginTransaction({});
|
||||||
const args = {
|
const args = {
|
||||||
|
|
|
@ -80,23 +80,25 @@
|
||||||
</vn-card>
|
</vn-card>
|
||||||
|
|
||||||
<vn-button-bar class="vn-w-lg">
|
<vn-button-bar class="vn-w-lg">
|
||||||
|
<div ng-show="$ctrl.state">
|
||||||
<vn-button
|
<vn-button
|
||||||
label="Satisfied"
|
label="Satisfied"
|
||||||
disabled="$ctrl.state == 'CONFIRMED'"
|
disabled="$ctrl.state == 'CONFIRMED'"
|
||||||
ng-show="$ctrl.state && $ctrl.isHimSelf"
|
ng-show="$ctrl.isHimSelf"
|
||||||
ng-click="$ctrl.isSatisfied()">
|
ng-click="$ctrl.isSatisfied()">
|
||||||
</vn-button>
|
</vn-button>
|
||||||
<vn-button
|
<vn-button
|
||||||
label="Not satisfied"
|
label="Not satisfied"
|
||||||
disabled="$ctrl.state == 'REVISE'"
|
disabled="$ctrl.state == 'REVISE'"
|
||||||
ng-show="$ctrl.state && $ctrl.isHimSelf"
|
ng-show="$ctrl.isHimSelf"
|
||||||
ng-click="reason.show()">
|
ng-click="reason.show()">
|
||||||
</vn-button>
|
</vn-button>
|
||||||
<vn-button
|
<vn-button
|
||||||
label="Reason"
|
label="Reason"
|
||||||
ng-show="$ctrl.state && $ctrl.reason && ($ctrl.isHimSelf || $ctrl.isHr)"
|
ng-show="$ctrl.reason && ($ctrl.isHimSelf || $ctrl.isHr)"
|
||||||
ng-click="reason.show()">
|
ng-click="reason.show()">
|
||||||
</vn-button>
|
</vn-button>
|
||||||
|
</div>
|
||||||
<vn-button
|
<vn-button
|
||||||
label="{{$ctrl.state ? 'Resend' : 'Send'}}"
|
label="{{$ctrl.state ? 'Resend' : 'Send'}}"
|
||||||
ng-click="sendEmailConfirmation.show()"
|
ng-click="sendEmailConfirmation.show()"
|
||||||
|
|
Loading…
Reference in New Issue