Skip to content

Commit

Permalink
Update ClustersAdd:
Browse files Browse the repository at this point in the history
1) Update message for the sumbitted config
2) Hide bottom blocks for the sumbitted config
  • Loading branch information
proAlexandr committed Jul 2, 2019
1 parent 4811954 commit bf42b55
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/renderer/components/ClusterAdd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<Header :back-path="backPath" />
<div class="page__block clusters-add__contexts-block">
<template v-if="contexts.length">
<span v-if="manualConfig">Please, choose clusters to import:</span>
<span v-if="manualConfig">
We have detected the following clusters in the submitted config.
Please choose clusters you want to add:
</span>
<span v-else>We have detected existing <b>~/.kube/config</b> file with the following clusters:</span>
<div class="clusters-add__contexts">
<BaseCheckbox v-for="context in contexts" :key="context.name" v-model="checkedContexts[context.name]">
Expand All @@ -22,7 +25,7 @@
</template>
</div>

<div class="page__blocks-row">
<div v-if="!manualConfig" class="page__blocks-row">
<div class="page__block clusters-add__option">
Add cluster manually by inserting <b>~/.kube/config</b>
<Button layout="outline" theme="primary" to="/clusters/new?back=/clusters/add">ADD MANUALLY</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/shared/service/ForwardsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Local Port
<IconArrowDropdown thin to="right" class="forwards-table__arrow-column-divider" />
</td>
<td class="forwards-table__column-header forwards-table__column-header_name_remote-port">Destination Port</td>
<td class="forwards-table__column-header forwards-table__column-header_name_remote-port">Pod Port</td>
<td class="forwards-table__column-header forwards-table__column-header_name_actions" />
</tr>
<tr
Expand Down
1 change: 1 addition & 0 deletions src/renderer/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const store = new Vuex.Store({
strict: process.env.NODE_ENV !== 'production',
mutations: {
CLEANUP(state) {
Vue.delete(state, 'manualClusterConfig')
for (const moduleName of noPersistedModuleNames) {
state[moduleName] = modules[moduleName].state
}
Expand Down

0 comments on commit bf42b55

Please sign in to comment.