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

feat: Game Data Index Browser #446

Open
wants to merge 1 commit into
base: release/13.1.0
Choose a base branch
from
Open
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
33 changes: 19 additions & 14 deletions src/renderer/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,21 +296,21 @@ export class Header extends React.Component<HeaderProps, HeaderState> {
];
const menu = remote.Menu.buildFromTemplate(contextButtons);
menu.popup({ window: remote.getCurrentWindow() });
}}/>
}} />
)) :
browseViews.map(view => (
<MenuItem
key={view}
title={getLibraryItemTitle(view, this.context.libraries)}
link={joinLibraryRoute(view)}/>
link={joinLibraryRoute(view)} />
))
}
{ this.props.preferencesData.useCustomViews && (
{this.props.preferencesData.useCustomViews && (
<li className='header__menu__item' onClick={this.onCreateNewView} title={strings.createNewView}>
<OpenIcon icon={'plus'}/>
<OpenIcon icon={'plus'} />
</li>
)}
{ enableEditing ? (
{enableEditing ? (
<>
<MenuItem
title={strings.tags}
Expand All @@ -319,31 +319,36 @@ export class Header extends React.Component<HeaderProps, HeaderState> {
title={strings.categories}
link={Paths.CATEGORIES} />
</>
) : undefined }
) : undefined}
<MenuItem
title={strings.logs}
link={Paths.LOGS} />
<MenuItem
title={strings.config}
link={Paths.CONFIG} />
{ (onlineManual || offlineManual) && (
{(onlineManual || offlineManual) && (
<MenuItem
title={strings.manual}
link={Paths.MANUAL} />
)}
<MenuItem
title={strings.about}
link={Paths.ABOUT} />
{ enableEditing ? (
<MenuItem
title={strings.curate}
link={Paths.CURATE} />
) : undefined }
{ showDeveloperTab ? (
{enableEditing ? (
<>
<MenuItem
title={strings.curate}
link={Paths.CURATE} />
<MenuItem
title={'Game Data'}
link={Paths.BROWSE_GAME_DATA} />
</>
) : undefined}
{showDeveloperTab ? (
<MenuItem
title={strings.developer}
link={Paths.DEVELOPER} />
) : undefined }
) : undefined}
</ul>
</div>
{/* Right-most portion */}
Expand Down
1 change: 1 addition & 0 deletions src/renderer/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,7 @@ export class App extends React.Component<AppProps> {
componentStatuses: this.props.main.componentStatuses,
openFlashpointManager: this.openFlashpointManager,
metaState: this.props.currentView.data.metaState,
performFpfssAction: (cb) => this.performFpfssAction(cb),
searchStatus: null, // TODO: remove
};

Expand Down
Loading