Commit db06f5b6 authored by Patricio Bruna's avatar Patricio Bruna Committed by Juorder Antonio

add zone dns template for creating first time and add fallback to fix webpack config

parents 05d9d1fa d512d8ee
...@@ -168,7 +168,7 @@ linters: ...@@ -168,7 +168,7 @@ linters:
Shorthand: Shorthand:
enabled: true enabled: true
allowed_shorthands: [1, 2, 3] allowed_shorthands: [1, 2, 3, 4]
SingleLinePerProperty: SingleLinePerProperty:
enabled: true enabled: true
......
module.exports = {"main":{"js":"/785572bundle.js"}} module.exports = {"main":{"js":"/584076bundle.js"}}
\ No newline at end of file \ No newline at end of file
...@@ -88,10 +88,10 @@ export default class DNSZoneForm extends React.Component { ...@@ -88,10 +88,10 @@ export default class DNSZoneForm extends React.Component {
const records = this.defaultRows; const records = this.defaultRows;
const zoneDNS = this.zoneDNS; const zoneDNS = this.zoneDNS;
const domain = this.props.domain; const domain = this.props.domain;
const template = window.manager_config.dns.template;
const request = { const request = {
name: this.props.domain.name, name: domain.name,
kind: 'Master', template
nameservers: []
}; };
if (this.newRows.length > 0) { if (this.newRows.length > 0) {
......
...@@ -55,10 +55,11 @@ export default class DNSZoneForm extends React.Component { ...@@ -55,10 +55,11 @@ export default class DNSZoneForm extends React.Component {
} }
addDNSRequest() { addDNSRequest() {
const domain = this.props.state.domain;
const template = window.manager_config.dns.template;
const request = { const request = {
name: this.props.state.domain.name, name: domain.name,
kind: 'Master', template
nameservers: []
}; };
const records = this.defaultRows; const records = this.defaultRows;
......
...@@ -45,14 +45,15 @@ const notFoundParams = { ...@@ -45,14 +45,15 @@ const notFoundParams = {
function preRenderSetup(callwhendone) { function preRenderSetup(callwhendone) {
const d1 = Client.getClientConfig( const d1 = Client.getClientConfig(
(data) => { (data) => {
const config = data.result || data;
if (!data) { if (!config) {
return; return;
} }
global.window.manager_config = data; global.window.manager_config = config;
if (data.debug) { if (config.debug) {
global.window.Client = Client; global.window.Client = Client;
global.window.Utils = Utils; global.window.Utils = Utils;
} }
......
...@@ -126,13 +126,15 @@ ...@@ -126,13 +126,15 @@
.tabs-right > .nav-tabs > li > a:hover, .tabs-right > .nav-tabs > li > a:hover,
.tabs-right > .nav-tabs > li > a:focus { .tabs-right > .nav-tabs > li > a:focus {
border-color: $border-color-tabs-state $border-color-tabs-state $border-color-tabs-state $table-children-border-bottom-color; border-color: $border-color-tabs-state;
border-left-color: $table-children-border-bottom-color;
} }
.tabs-right > .nav-tabs .active > a, .tabs-right > .nav-tabs .active > a,
.tabs-right > .nav-tabs .active > a:hover, .tabs-right > .nav-tabs .active > a:hover,
.tabs-right > .nav-tabs .active > a:focus { .tabs-right > .nav-tabs .active > a:focus {
border-color: $border-color $border-color $border-color transparent; border-color: $border-color;
border-left-color: transparent;
z-index: 1; z-index: 1;
} }
......
...@@ -103,6 +103,9 @@ var config = { ...@@ -103,6 +103,9 @@ var config = {
'node_modules', 'node_modules',
path.resolve(__dirname) path.resolve(__dirname)
] ]
},
node: {
fs: 'empty'
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment