refactor: pull request changes
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
76515bdd3f
commit
3c9800a7a3
|
@ -1,7 +1,4 @@
|
||||||
INSERT INTO `salix`.`ACL`
|
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
||||||
(`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
VALUES
|
||||||
VALUES('ItemType', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
|
('ItemType', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||||
|
('ItemType', '*', 'WRITE', 'ALLOW', 'ROLE', 'buyer');
|
||||||
INSERT INTO `salix`.`ACL`
|
|
||||||
(`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
|
||||||
VALUES('ItemType', '*', 'WRITE', 'ALLOW', 'ROLE', 'buyer');
|
|
|
@ -18,12 +18,6 @@
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"workerFk": {
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
"categoryFk": {
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
"temperatureFk": {
|
"temperatureFk": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,11 +15,13 @@ describe('component vnItemTypeCard', () => {
|
||||||
it('should reload the controller data', () => {
|
it('should reload the controller data', () => {
|
||||||
controller.$params.id = 1;
|
controller.$params.id = 1;
|
||||||
|
|
||||||
$httpBackend.expectGET('ItemTypes/1').respond('foo');
|
const itemType = {id: 1};
|
||||||
|
|
||||||
|
$httpBackend.expectGET('ItemTypes/1').respond(itemType);
|
||||||
controller.reload();
|
controller.reload();
|
||||||
$httpBackend.flush();
|
$httpBackend.flush();
|
||||||
|
|
||||||
expect(controller.itemType).toBe('foo');
|
expect(controller.itemType).toEqual(itemType);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -22,10 +22,4 @@
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
</div>
|
</div>
|
||||||
</slot-body>
|
</slot-body>
|
||||||
</vn-descriptor-content>
|
</vn-descriptor-content>
|
||||||
<vn-confirm
|
|
||||||
vn-id="delete-itemType"
|
|
||||||
on-accept="$ctrl.onDelete()"
|
|
||||||
question="Are you sure you want to continue?"
|
|
||||||
message="ItemType will be removed">
|
|
||||||
</vn-confirm>
|
|
|
@ -1,2 +0,0 @@
|
||||||
Role will be removed: El rol va a ser eliminado
|
|
||||||
Role removed: Rol eliminado
|
|
|
@ -4,7 +4,8 @@
|
||||||
<vn-textfield
|
<vn-textfield
|
||||||
vn-one
|
vn-one
|
||||||
label="Name"
|
label="Name"
|
||||||
ng-model="filter.name">
|
ng-model="filter.name"
|
||||||
|
vn-focus>
|
||||||
</vn-textfield>
|
</vn-textfield>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
|
Loading…
Reference in New Issue