Import domains from url query params on load

This commit is contained in:
MattIPv4
2020-05-05 17:19:08 +01:00
parent f2c0878cda
commit 2273662feb
8 changed files with 115 additions and 16 deletions

View File

@@ -33,7 +33,7 @@ limitations under the License.
v-for="tab in tabs"
:key="tab.key"
:data="$props.data[tab.key]"
:style="{ display: active === tab.key ? 'block' : 'none' }"
:style="{ display: active === tab.key ? undefined : 'none' }"
class="container"
></component>
@@ -56,6 +56,7 @@ limitations under the License.
const tabs = Object.values(Sections);
const delegated = {
hasUserInteraction: false,
presets: Presets.delegated,
...tabs.reduce((prev, tab) => {
prev[tab.key] = tab.delegated;
@@ -65,10 +66,10 @@ limitations under the License.
export default {
name: 'Domain',
delegated,
delegated, // Data the parent will present here
components: {
Presets,
}, // Data the parent will present here
},
props: {
data: Object, // Data delegated back to us from parent
},
@@ -76,7 +77,6 @@ limitations under the License.
return {
active: tabs[0].key,
tabs,
hasUserInteraction: false,
};
},
computed: {