refactor: pull request changes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-05-20 12:33:12 +02:00
parent 76515bdd3f
commit 3c9800a7a3
6 changed files with 11 additions and 25 deletions

View File

@ -1,7 +1,4 @@
INSERT INTO `salix`.`ACL`
(`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
VALUES('ItemType', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
INSERT INTO `salix`.`ACL`
(`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
VALUES('ItemType', '*', 'WRITE', 'ALLOW', 'ROLE', 'buyer');
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
VALUES
('ItemType', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
('ItemType', '*', 'WRITE', 'ALLOW', 'ROLE', 'buyer');

View File

@ -18,12 +18,6 @@
"name": {
"type": "string"
},
"workerFk": {
"type": "number"
},
"categoryFk": {
"type": "number"
},
"temperatureFk": {
"type": "string"
},

View File

@ -15,11 +15,13 @@ describe('component vnItemTypeCard', () => {
it('should reload the controller data', () => {
controller.$params.id = 1;
$httpBackend.expectGET('ItemTypes/1').respond('foo');
const itemType = {id: 1};
$httpBackend.expectGET('ItemTypes/1').respond(itemType);
controller.reload();
$httpBackend.flush();
expect(controller.itemType).toBe('foo');
expect(controller.itemType).toEqual(itemType);
});
});
});

View File

@ -22,10 +22,4 @@
</vn-label-value>
</div>
</slot-body>
</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>
</vn-descriptor-content>

View File

@ -1,2 +0,0 @@
Role will be removed: El rol va a ser eliminado
Role removed: Rol eliminado

View File

@ -4,7 +4,8 @@
<vn-textfield
vn-one
label="Name"
ng-model="filter.name">
ng-model="filter.name"
vn-focus>
</vn-textfield>
</vn-horizontal>
<vn-horizontal>