Browse Source

Removes dead tab code in patch details

main
Keith Daulton 1 year ago
parent
commit
ef251d934f
2 changed files with 1 additions and 34 deletions
  1. +1
    -31
      src/webviews/apps/plus/patchDetails/components/patch-details-app.ts
  2. +0
    -3
      src/webviews/apps/plus/patchDetails/patchDetails.scss

+ 1
- 31
src/webviews/apps/plus/patchDetails/components/patch-details-app.ts View File

@ -1,5 +1,5 @@
import { Badge, defineGkElement, Menu, MenuItem, Popover } from '@gitkraken/shared-web-components';
import { html, nothing } from 'lit';
import { html } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { when } from 'lit/directives/when.js';
import type { DraftDetails, Mode, State } from '../../../../../plus/webviews/patchDetails/protocol';
@ -108,39 +108,9 @@ export class GlPatchDetailsApp extends GlElement {
}
}
private renderTabs() {
return nothing;
// return html`
// <nav class="details-tab">
// <button
// class="details-tab__item ${this.mode === 'view' ? ' is-active' : ''}"
// data-action="mode"
// data-action-value="view"
// >
// Patch
// </button>
// <button
// class="details-tab__item ${this.mode === 'create' ? ' is-active' : ''}"
// data-action="mode"
// data-action-value="create"
// title="${this.wipChangeState != null
// ? `${pluralize('file change', this.wipChangeState.count, {
// plural: 'file changes',
// })} on ${this.wipChangeState.branches}`
// : nothing}"
// >
// Create${this.wipChangeState
// ? html` &nbsp;<gk-badge variant="filled">${this.wipChangeState.count}</gk-badge>`
// : ''}
// </button>
// </nav>
// `;
}
override render() {
return html`
<div class="commit-detail-panel scrollable">
${this.renderTabs()}
<main id="main" tabindex="-1">
${when(
this.mode === 'view',

+ 0
- 3
src/webviews/apps/plus/patchDetails/patchDetails.scss View File

@ -166,9 +166,6 @@ textarea.message-input__control {
flex-direction: column;
overflow: hidden;
}
.details-tab {
flex: none;
}
main {
flex: 1 1 auto;

Loading…
Cancel
Save