Merge branch 'dev' of https://git.verdnatura.es/salix into dev
This commit is contained in:
commit
20de81a3c8
|
@ -1,11 +1,11 @@
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-one>{{::$ctrl.concept}}</vn-one>
|
<vn-one>{{::$ctrl.concept}}</vn-one>
|
||||||
<vn-one>
|
<vn-auto>
|
||||||
<section
|
<section
|
||||||
class="inline-tag ellipsize" ng-class="{'empty': !fetchedTag.value}"
|
class="inline-tag ellipsize" ng-class="{'empty': !fetchedTag.value}"
|
||||||
ng-repeat="fetchedTag in $ctrl.tags track by $index"
|
ng-repeat="fetchedTag in $ctrl.tags track by $index"
|
||||||
vn-tooltip="{{::fetchedTag.tag.name}}: {{::fetchedTag.value}}">
|
vn-tooltip="{{::fetchedTag.tag.name}}: {{::fetchedTag.value}}">
|
||||||
{{::fetchedTag.value}}
|
{{::fetchedTag.value}}
|
||||||
</section>
|
</section>
|
||||||
</vn-one>
|
</vn-auto>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
|
@ -22,7 +22,7 @@ vn-fetched-tags {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1200px){
|
@media screen and (max-width: 1200px) {
|
||||||
& vn-horizontal {
|
& vn-horizontal {
|
||||||
.inline-tag {
|
.inline-tag {
|
||||||
font-size: 0.6em;
|
font-size: 0.6em;
|
||||||
|
@ -31,9 +31,15 @@ vn-fetched-tags {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
& vn-horizontal {
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
& vn-one {
|
& vn-one {
|
||||||
|
white-space: nowrap;
|
||||||
padding-top: 0.2em
|
padding-top: 0.2em
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
& vn-two {
|
& vn-two {
|
||||||
|
@ -43,6 +49,7 @@ vn-fetched-tags {
|
||||||
& .inline-tag {
|
& .inline-tag {
|
||||||
background-color: $secondary-font-color;
|
background-color: $secondary-font-color;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
float: none;
|
||||||
color: $color-white;
|
color: $color-white;
|
||||||
margin-right: 0.4em;
|
margin-right: 0.4em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -1,16 +1,4 @@
|
||||||
vn-ticket-components {
|
vn-ticket-components {
|
||||||
vn-fetched-tags {
|
|
||||||
& vn-horizontal {
|
|
||||||
flex-direction: column;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
& .inline-tag {
|
|
||||||
display: inline-block;
|
|
||||||
float: none
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.vn-grid {
|
.vn-grid {
|
||||||
tbody:not(:last-child) {
|
tbody:not(:last-child) {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
|
|
@ -300,6 +300,7 @@ export default {
|
||||||
ticketExpedition: {
|
ticketExpedition: {
|
||||||
expeditionButton: `vn-menu-item a[ui-sref="ticket.card.expedition"]`,
|
expeditionButton: `vn-menu-item a[ui-sref="ticket.card.expedition"]`,
|
||||||
secondExpeditionRemoveButton: `vn-ticket-expedition vn-table div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(1) > vn-icon-button[icon="delete"]`,
|
secondExpeditionRemoveButton: `vn-ticket-expedition vn-table div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(1) > vn-icon-button[icon="delete"]`,
|
||||||
|
acceptDeleteRowButton: `vn-ticket-expedition > vn-confirm[vn-id="delete-expedition"] button[response=ACCEPT]`,
|
||||||
expeditionRow: `vn-ticket-expedition vn-table vn-tbody > vn-tr`,
|
expeditionRow: `vn-ticket-expedition vn-table vn-tbody > vn-tr`,
|
||||||
},
|
},
|
||||||
ticketPackages: {
|
ticketPackages: {
|
||||||
|
|
|
@ -41,9 +41,10 @@ describe('Ticket', () => {
|
||||||
expect(url).toContain('expedition');
|
expect(url).toContain('expedition');
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should delete a former expedition and confirm the remaining expedition are the expected one`, async () => {
|
it(`should delete a former expedition and confirm the remaining expedition are the expected ones`, async () => {
|
||||||
const result = await nightmare
|
const result = await nightmare
|
||||||
.waitToClick(selectors.ticketExpedition.secondExpeditionRemoveButton)
|
.waitToClick(selectors.ticketExpedition.secondExpeditionRemoveButton)
|
||||||
|
.waitToClick(selectors.ticketExpedition.acceptDeleteRowButton)
|
||||||
.click(selectors.ticketPackages.packagesButton)
|
.click(selectors.ticketPackages.packagesButton)
|
||||||
.wait(selectors.ticketPackages.firstPackageSelect)
|
.wait(selectors.ticketPackages.firstPackageSelect)
|
||||||
.click(selectors.ticketExpedition.expeditionButton)
|
.click(selectors.ticketExpedition.expeditionButton)
|
||||||
|
|
|
@ -75,3 +75,8 @@ DELETE FROM `salix`.`ACL` WHERE `id`='59';
|
||||||
DELETE FROM `salix`.`ACL` WHERE `id`='57';
|
DELETE FROM `salix`.`ACL` WHERE `id`='57';
|
||||||
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (116, 'BankEntity', '*', '*', 'ALLOW', 'role', 'employee');
|
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (116, 'BankEntity', '*', '*', 'ALLOW', 'role', 'employee');
|
||||||
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (117, 'ClientSample', '*', '*', 'ALLOW', 'role', 'employee');
|
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (117, 'ClientSample', '*', '*', 'ALLOW', 'role', 'employee');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
INSERT INTO `salix`.`fieldAcl` (`model`, `property`, `actionType`, `role`) VALUES ('TicketWeekly', '*', '*', 'employee');
|
|
@ -0,0 +1,11 @@
|
||||||
|
DROP TRIGGER IF EXISTS `vn`.`itemLog_BEFORE_INSERT`;
|
||||||
|
|
||||||
|
DELIMITER $$
|
||||||
|
USE `vn`$$
|
||||||
|
CREATE DEFINER=`root`@`%` TRIGGER `vn`.`itemLog_BEFORE_INSERT` BEFORE INSERT ON `itemLog` FOR EACH ROW
|
||||||
|
BEGIN
|
||||||
|
IF NEW.newInstance is NULL THEN
|
||||||
|
SET NEW.newInstance = NEW.description;
|
||||||
|
END IF;
|
||||||
|
END$$
|
||||||
|
DELIMITER ;
|
|
@ -0,0 +1,11 @@
|
||||||
|
DROP TRIGGER IF EXISTS `vn`.`ticketLog_BEFORE_INSERT`;
|
||||||
|
|
||||||
|
DELIMITER $$
|
||||||
|
USE `vn`$$
|
||||||
|
CREATE DEFINER=`root`@`%` TRIGGER `vn`.`ticketLog_BEFORE_INSERT` BEFORE INSERT ON `ticketLog` FOR EACH ROW
|
||||||
|
BEGIN
|
||||||
|
IF NEW.newInstance is NULL THEN
|
||||||
|
SET NEW.newInstance = NEW.description;
|
||||||
|
END IF;
|
||||||
|
END$$
|
||||||
|
DELIMITER ;
|
|
@ -0,0 +1,11 @@
|
||||||
|
DROP TRIGGER IF EXISTS `vn`.`claimLog_BEFORE_INSERT`;
|
||||||
|
|
||||||
|
DELIMITER $$
|
||||||
|
USE `vn`$$
|
||||||
|
CREATE DEFINER=`root`@`%` TRIGGER `vn`.`claimLog_BEFORE_INSERT` BEFORE INSERT ON `claimLog` FOR EACH ROW
|
||||||
|
BEGIN
|
||||||
|
IF NEW.newInstance is NULL THEN
|
||||||
|
SET NEW.newInstance = NEW.description;
|
||||||
|
END IF;
|
||||||
|
END$$
|
||||||
|
DELIMITER ;
|
|
@ -0,0 +1,11 @@
|
||||||
|
DROP TRIGGER IF EXISTS `vn`.`clientLog_BEFORE_INSERT`;
|
||||||
|
|
||||||
|
DELIMITER $$
|
||||||
|
USE `vn`$$
|
||||||
|
CREATE DEFINER=`root`@`%` TRIGGER `vn`.`clientLog_BEFORE_INSERT` BEFORE INSERT ON `clientLog` FOR EACH ROW
|
||||||
|
BEGIN
|
||||||
|
IF NEW.newInstance is NULL THEN
|
||||||
|
SET NEW.newInstance = NEW.description;
|
||||||
|
END IF;
|
||||||
|
END$$
|
||||||
|
DELIMITER ;
|
Loading…
Reference in New Issue