Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename applications on agent menu #5997

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions plugins/main/public/components/common/modules/main-agent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,6 @@ export class MainModuleAgent extends Component {
this.router = $injector.get('$route');
}

showAgentInfo() {
const elem = document.getElementsByClassName('wz-module-body-main')[0];
if (elem) {
if (!this.state.showAgentInfo) {
elem.classList.add('wz-module-body-main-double');
} else {
elem.classList.remove('wz-module-body-main-double');
}
}
this.setState({ showAgentInfo: !this.state.showAgentInfo });
}

async startReport() {
this.setState({ loadingReport: true });
const syscollectorFilters: any[] = [];
Expand Down Expand Up @@ -158,7 +146,7 @@ export class MainModuleAgent extends Component {
</div>
{agent && agent.os && (
<Fragment>
<div className='wz-module-header-nav-wrapper'>
<div>
<div
className={
this.props.tabs &&
Expand Down
33 changes: 0 additions & 33 deletions plugins/main/public/components/common/modules/module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
display: contents;
}

.wz-module-header-agent-wrapper, .wz-module-header-nav-wrapper{
width: 100%;
position: fixed;
z-index: 3000;
left: 0;
}

.wz-module-header-agent, .wz-module-header-nav{
background:#fafbfd;
}
Expand Down Expand Up @@ -61,10 +54,6 @@
font-weight: 500;
}

.wz-module-header-nav-wrapper{
margin-top: 49px;
}

.wz-module-header-nav .euiTabs{
padding-top: 6px;
}
Expand All @@ -79,9 +68,6 @@
}

.wz-module.wz-module-welcome{
.wz-module-agent-body{
padding-top: 50px !important;
}
.wz-module-body{
padding-top: 109px !important;
}
Expand All @@ -95,14 +81,6 @@
padding: 2px 0px 8px 0px!important;
}

.wz-module-body-main {
padding-top: 50px!important;
}

.wz-module-body-main-double {
padding-top: 102px!important;
}

.sidebar-list{
margin-bottom: 2px;
}
Expand All @@ -116,9 +94,6 @@ discover-app-w .sidebar-container {
padding-top: 189px !important;
}
@media only screen and (max-width: 767px){
.wz-module.wz-module-welcome .wz-module-agent-body{
padding-top: 0px !important;
}
.wz-module-header-agent{
height: auto;
h1{
Expand All @@ -131,14 +106,6 @@ discover-app-w .sidebar-container {
margin-top: -160px;
}

.wz-module-header-agent-wrapper, .wz-module-header-nav-wrapper{
position: relative;
}

.wz-module-header-nav-wrapper{
margin-top: 15px;
}

.wz-module-header-nav {
padding-bottom: 16px;
}
Expand Down
Loading