From 3801783325ab2231bea6f32c66dc573ad5202c84 Mon Sep 17 00:00:00 2001 From: June Hanabi Date: Mon, 25 Feb 2019 13:24:25 -0500 Subject: [PATCH] Small update which prepares for expansion of new features --- package.json | 2 +- src/app/app.module.ts | 4 +++- .../card-pokemon-header.component.pug | 17 ++++++++++++++--- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 98cbfa0..026ba66 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "pokered-save-editor", "productName": "Pokered Save Editor", "description": "Pokemon Red/Blue Save Editor", - "version": "1.3.1", + "version": "1.3.2", "repository": { "type": "git", "url": "https://github.com/junebug12851/pokered-save-editor.git" diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 8338988..5d817eb 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -49,6 +49,7 @@ import { MatPaginatorModule } from '@angular/material/paginator'; import { MatButtonToggleModule } from '@angular/material/button-toggle'; import { MatGridListModule } from '@angular/material/grid-list'; import { MatTooltipModule } from '@angular/material/tooltip'; +import {MatMenuModule} from '@angular/material/menu'; // Modules import { FontawesomeModule } from './libs/fontawesome.module'; @@ -203,7 +204,8 @@ import { RootHoFComponent } from './screens/root-hof/root-hof.component'; MatPaginatorModule, MatButtonToggleModule, MatGridListModule, - MatTooltipModule + MatTooltipModule, + MatMenuModule ], providers: [ SaveFileService, diff --git a/src/app/fragments/card-pokemon-header/card-pokemon-header.component.pug b/src/app/fragments/card-pokemon-header/card-pokemon-header.component.pug index b2be26e..90ae45d 100644 --- a/src/app/fragments/card-pokemon-header/card-pokemon-header.component.pug +++ b/src/app/fragments/card-pokemon-header/card-pokemon-header.component.pug @@ -50,13 +50,24 @@ mat-card.sticky.ns(style='margin-bottom: 15px !important') ) span.im.im-plus3 + mat-menu( + '#menu'="matMenu" + ) + button( + mat-menu-item='', + color='warn', + '(click)'='onRemClick()' + ) + span + span.im.im-delete + span   Delete + button.stick.br( mat-mini-fab='', - color='warn', *ngIf='remBtn', - '(click)'='onRemClick()' + '[matMenuTriggerFor]'="menu" ) - span.im.im-delete + span.im.im-th-menu button.stick.bl( mat-mini-fab='',