Skip to content

Commit

Permalink
Merge pull request #2061 from vincent99/master
Browse files Browse the repository at this point in the history
Hide fleet rbac
  • Loading branch information
vincent99 authored Dec 11, 2020
2 parents d647621 + 9a50a6b commit 9940c37
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions assets/styles/themes/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@

--terminal-bg: var(--wm-body-bg);
--terminal-cursor: var(--warning);
--terminal-selection: #{$selected};
--terminal-text: var(--body-text);

--logs-bg: var(--wm-body-bg);
Expand Down
1 change: 1 addition & 0 deletions assets/styles/themes/_light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ $selected: rgba($primary, .5);

--terminal-bg : var(--body-bg);
--terminal-cursor : var(--warning);
--terminal-selection : #{$selected};
--terminal-text : var(--body-text);

--logs-bg : var(--wm-body-bg);
Expand Down
1 change: 1 addition & 0 deletions components/nav/WindowManager/ContainerShell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export default {
theme: {
background: docStyle.getPropertyValue('--terminal-bg').trim(),
cursor: docStyle.getPropertyValue('--terminal-cursor').trim(),
selection: docStyle.getPropertyValue('--terminal-selection').trim(),
foreground: docStyle.getPropertyValue('--terminal-text').trim()
},
...this.xtermConfig,
Expand Down
13 changes: 8 additions & 5 deletions detail/management.cattle.io.fleetworkspace.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script>
import CountBox from '@/components/CountBox';
import RoleBindings from '@/components/RoleBindings';
// import RoleBindings from '@/components/RoleBindings';
import ResourceTabs from '@/components/form/ResourceTabs';
import Tab from '@/components/Tabbed/Tab';
// import Tab from '@/components/Tabbed/Tab';
import { SCOPE_NAMESPACE, SCOPE_CLUSTER } from '@/components/RoleBindings.vue';
import { NAME as FLEET_NAME } from '@/config/product/fleet';
import { FLEET } from '@/config/types';
Expand All @@ -11,7 +11,10 @@ export default {
name: 'DetailWorkspace',
components: {
CountBox, RoleBindings, Tab, ResourceTabs
CountBox,
// RoleBindings,
// Tab,
ResourceTabs
},
props: {
Expand Down Expand Up @@ -64,7 +67,7 @@ export default {
</div>
<section class="bordered-section">
<ResourceTabs :value="value" mode="view">
<Tab name="members" label="Members">
<!-- <Tab name="members" label="Members">
<RoleBindings
ref="rb"
:role-scope="SCOPE_CLUSTER"
Expand All @@ -75,7 +78,7 @@ export default {
mode="view"
as="detail"
/>
</Tab>
</Tab> -->
</ResourceTabs>
</section>
</div>
Expand Down
8 changes: 4 additions & 4 deletions edit/management.cattle.io.fleetworkspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Labels from '@/components/form/Labels';
import Loading from '@/components/Loading';
import NameNsDescription from '@/components/form/NameNsDescription';
import { FLEET, MANAGEMENT } from '@/config/types';
import RoleBindings from '@/components/RoleBindings';
// import RoleBindings from '@/components/RoleBindings';
import Tabbed from '@/components/Tabbed';
import Tab from '@/components/Tabbed/Tab';
import { SCOPE_NAMESPACE, SCOPE_CLUSTER } from '@/components/RoleBindings.vue';
Expand All @@ -19,7 +19,7 @@ export default {
Labels,
Loading,
NameNsDescription,
RoleBindings,
// RoleBindings,
Tabbed,
Tab,
},
Expand Down Expand Up @@ -71,7 +71,7 @@ export default {
<NameNsDescription v-model="value" :mode="mode" :namespaced="false" />

<Tabbed :side-tabs="true" default-tab="members">
<Tab name="members" label-key="generic.members" :weight="2">
<!-- <Tab name="members" label-key="generic.members" :weight="2">
<RoleBindings
ref="rb"
:register-after-hook="registerAfterHook"
Expand All @@ -82,7 +82,7 @@ export default {
:mode="mode"
in-store="management"
/>
</Tab>
</Tab> -->

<Tab name="labels" label-key="generic.labelsAndAnnotations">
<Labels v-model="value" :mode="mode" />
Expand Down

0 comments on commit 9940c37

Please sign in to comment.