Commit 5fc3ac8e513544ec64b45888da3bb99c96e3e727

Authored by nordmif
2 parents 30537e2a 2f06be1d

Merge branch 'master' of github.com:thingsboard/thingsboard into new-nodes

@@ -55,6 +55,8 @@ spec: @@ -55,6 +55,8 @@ spec:
55 env: 55 env:
56 - name: POSTGRES_DB 56 - name: POSTGRES_DB
57 value: "thingsboard" 57 value: "thingsboard"
  58 + - name: PGDATA
  59 + value: /var/lib/postgresql/data/pgdata
58 volumeMounts: 60 volumeMounts:
59 - mountPath: /var/lib/postgresql/data 61 - mountPath: /var/lib/postgresql/data
60 name: postgres-data 62 name: postgres-data
@@ -13,6 +13,9 @@ @@ -13,6 +13,9 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
  16 +
  17 +import './settings-card.scss';
  18 +
16 /*@ngInject*/ 19 /*@ngInject*/
17 export default function AdminController(adminService, toast, $scope, $rootScope, $state, $translate) { 20 export default function AdminController(adminService, toast, $scope, $rootScope, $state, $translate) {
18 21
@@ -15,8 +15,8 @@ @@ -15,8 +15,8 @@
15 limitations under the License. 15 limitations under the License.
16 16
17 --> 17 -->
18 -<div layout="row" width="100%" layout-wrap>  
19 - <md-card flex-gt-sm="60" flex="100" style="height: 100%;"> 18 +<div>
  19 + <md-card class="settings-card">
20 <md-card-title> 20 <md-card-title>
21 <md-card-title-text> 21 <md-card-title-text>
22 <span translate class="md-headline">admin.general-settings</span> 22 <span translate class="md-headline">admin.general-settings</span>
@@ -15,8 +15,8 @@ @@ -15,8 +15,8 @@
15 limitations under the License. 15 limitations under the License.
16 16
17 --> 17 -->
18 -<div layout="row" width="100%" layout-wrap tb-help="'outgoingMailSettings'" help-container-id="help-container">  
19 - <md-card flex-gt-sm="60" flex="100" style="height: 100%;"> 18 +<div tb-help="'outgoingMailSettings'" help-container-id="help-container">
  19 + <md-card class="settings-card">
20 <md-card-title> 20 <md-card-title>
21 <md-card-title-text layout="row"> 21 <md-card-title-text layout="row">
22 <span translate class="md-headline">admin.outgoing-mail-settings</span> 22 <span translate class="md-headline">admin.outgoing-mail-settings</span>
  1 +/**
  2 + * Copyright © 2016-2019 The Thingsboard Authors
  3 + *
  4 + * Licensed under the Apache License, Version 2.0 (the "License");
  5 + * you may not use this file except in compliance with the License.
  6 + * You may obtain a copy of the License at
  7 + *
  8 + * http://www.apache.org/licenses/LICENSE-2.0
  9 + *
  10 + * Unless required by applicable law or agreed to in writing, software
  11 + * distributed under the License is distributed on an "AS IS" BASIS,
  12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13 + * See the License for the specific language governing permissions and
  14 + * limitations under the License.
  15 + */
  16 +
  17 +@import "../../scss/constants";
  18 +
  19 +md-card.settings-card {
  20 + @media (min-width: $layout-breakpoint-sm) {
  21 + width: 60%;
  22 + }
  23 +}
@@ -499,6 +499,8 @@ function Utils($mdColorPalette, $rootScope, $window, $translate, $q, $timeout, t @@ -499,6 +499,8 @@ function Utils($mdColorPalette, $rootScope, $window, $translate, $q, $timeout, t
499 label = label.split(variable).join(datasource.entityName); 499 label = label.split(variable).join(datasource.entityName);
500 } else if (variableName === 'aliasName') { 500 } else if (variableName === 'aliasName') {
501 label = label.split(variable).join(datasource.aliasName); 501 label = label.split(variable).join(datasource.aliasName);
  502 + } else if (variableName === 'entityDescription') {
  503 + label = label.split(variable).join(datasource.entityDescription);
502 } 504 }
503 match = varsRegex.exec(pattern); 505 match = varsRegex.exec(pattern);
504 } 506 }