|
|
@ -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` <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', |
|
|
|