Merge branch 'dev' into 3862-ticket_problemItemShortage
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
b06b9718dc
|
@ -23,7 +23,13 @@ module.exports = Self => {
|
||||||
let models = Self.app.models;
|
let models = Self.app.models;
|
||||||
|
|
||||||
let user = await models.Account.findById(userId, {
|
let user = await models.Account.findById(userId, {
|
||||||
fields: ['id', 'name', 'nickname', 'email']
|
fields: ['id', 'name', 'nickname', 'email', 'lang'],
|
||||||
|
include: {
|
||||||
|
relation: 'userConfig',
|
||||||
|
scope: {
|
||||||
|
fields: ['darkMode']
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
let roles = await models.RoleMapping.find({
|
let roles = await models.RoleMapping.find({
|
||||||
|
|
|
@ -71,6 +71,11 @@
|
||||||
"type": "hasOne",
|
"type": "hasOne",
|
||||||
"model": "Worker",
|
"model": "Worker",
|
||||||
"foreignKey": "userFk"
|
"foreignKey": "userFk"
|
||||||
|
},
|
||||||
|
"userConfig": {
|
||||||
|
"type": "hasOne",
|
||||||
|
"model": "UserConfig",
|
||||||
|
"foreignKey": "userFk"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"acls": [
|
"acls": [
|
||||||
|
|
|
@ -9,20 +9,23 @@
|
||||||
"properties": {
|
"properties": {
|
||||||
"userFk": {
|
"userFk": {
|
||||||
"id": true,
|
"id": true,
|
||||||
"type": "Number",
|
"type": "number",
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
"warehouseFk": {
|
"warehouseFk": {
|
||||||
"type": "Number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"companyFk": {
|
"companyFk": {
|
||||||
"type": "Number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"created": {
|
"created": {
|
||||||
"type": "Date"
|
"type": "date"
|
||||||
},
|
},
|
||||||
"updated": {
|
"updated": {
|
||||||
"type": "Date"
|
"type": "date"
|
||||||
|
},
|
||||||
|
"darkMode": {
|
||||||
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relations": {
|
"relations": {
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
ALTER TABLE `vn`.`userConfig` ADD darkMode tinyint(1) DEFAULT 1 NOT NULL COMMENT 'Salix interface dark mode';
|
|
@ -59,6 +59,12 @@ module.exports = Self => {
|
||||||
fields: ['id', 'name']
|
fields: ['id', 'name']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
relation: 'agencyMode',
|
||||||
|
scope: {
|
||||||
|
fields: ['id', 'name']
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
relation: 'address',
|
relation: 'address',
|
||||||
scope: {
|
scope: {
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Unlink zone: Unlink zone {{zoneName}} from agency {{agencyName}}
|
|
@ -1,4 +1,5 @@
|
||||||
Routes: Rutas
|
Routes: Rutas
|
||||||
Search routes by id: Buscar rutas por identificador
|
Search routes by id: Buscar rutas por identificador
|
||||||
New route: Nueva ruta
|
New route: Nueva ruta
|
||||||
route: ruta
|
route: ruta
|
||||||
|
Unlink zone: Desvincular zona {{zoneName}} de agencia {{agencyName}}
|
|
@ -33,7 +33,7 @@
|
||||||
</vn-th>
|
</vn-th>
|
||||||
<vn-th expand>PC</vn-th>
|
<vn-th expand>PC</vn-th>
|
||||||
<vn-th>Address</vn-th>
|
<vn-th>Address</vn-th>
|
||||||
<vn-th shrink>Warehouse</vn-th>
|
<vn-th shrink>Zone</vn-th>
|
||||||
</vn-tr>
|
</vn-tr>
|
||||||
</vn-thead>
|
</vn-thead>
|
||||||
<vn-tbody>
|
<vn-tbody>
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
<vn-icon-button
|
<vn-icon-button
|
||||||
icon="link_off"
|
icon="link_off"
|
||||||
class="pointer"
|
class="pointer"
|
||||||
translate-attr="{title: 'Unlink zone: {{::ticket.zone.name}} from agency: {{::ticket.agencyMode.name}}'}"
|
title="{{'Unlink zone' | translate: {zoneName: ticket.zone.name, agencyName: ticket.agencyMode.name} }}"
|
||||||
ng-click="unlinkZoneConfirmation.show(ticket)">
|
ng-click="unlinkZoneConfirmation.show(ticket)">
|
||||||
</vn-icon-button>
|
</vn-icon-button>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
|
@ -76,4 +76,9 @@
|
||||||
question="{{$ctrl.confirmationMessage}}"
|
question="{{$ctrl.confirmationMessage}}"
|
||||||
message="Unlink selected zone?">
|
message="Unlink selected zone?">
|
||||||
</vn-confirm>
|
</vn-confirm>
|
||||||
|
<vn-ticket-descriptor-popover vn-id="ticket-descriptor">
|
||||||
|
</vn-ticket-descriptor-popover>
|
||||||
|
<vn-client-descriptor-popover vn-id="client-descriptor">
|
||||||
|
</vn-client-descriptor-popover>
|
||||||
</tpl-body>
|
</tpl-body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue