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:
Shorthand:
enabled: true
allowed_shorthands: [1, 2, 3]
allowed_shorthands: [1, 2, 3, 4]
SingleLinePerProperty:
enabled: true
......
module.exports = {"main":{"js":"/785572bundle.js"}}
\ No newline at end of file
module.exports = {"main":{"js":"/584076bundle.js"}}
\ No newline at end of file
......@@ -88,10 +88,10 @@ export default class DNSZoneForm extends React.Component {
const records = this.defaultRows;
const zoneDNS = this.zoneDNS;
const domain = this.props.domain;
const template = window.manager_config.dns.template;
const request = {
name: this.props.domain.name,
kind: 'Master',
nameservers: []
name: domain.name,
template
};
if (this.newRows.length > 0) {
......
......@@ -55,10 +55,11 @@ export default class DNSZoneForm extends React.Component {
}
addDNSRequest() {
const domain = this.props.state.domain;
const template = window.manager_config.dns.template;
const request = {
name: this.props.state.domain.name,
kind: 'Master',
nameservers: []
name: domain.name,
template
};
const records = this.defaultRows;
......
......@@ -45,14 +45,15 @@ const notFoundParams = {
function preRenderSetup(callwhendone) {
const d1 = Client.getClientConfig(
(data) => {
const config = data.result || data;
if (!data) {
if (!config) {
return;
}
global.window.manager_config = data;
global.window.manager_config = config;
if (data.debug) {
if (config.debug) {
global.window.Client = Client;
global.window.Utils = Utils;
}
......
......@@ -126,13 +126,15 @@
.tabs-right > .nav-tabs > li > a:hover,
.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:hover,
.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;
}
......
......@@ -103,6 +103,9 @@ var config = {
'node_modules',
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