diff --git a/src/app/app.module.ts b/src/app/app.module.ts index acb9a40..36f2709 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -4,7 +4,7 @@ import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular'; import { MyApp } from './app.component'; import { LoginPage } from '../pages/login/login'; -import { StreamPage, NewPostModal } from '../pages/stream/stream'; +import { StreamPage, NewPostModal, PostMenu } from '../pages/stream/stream'; import { ThreadPage } from '../pages/thread/thread'; import { StatusBar } from '@ionic-native/status-bar'; @@ -22,6 +22,7 @@ import { ParserPipe } from '../pipes/parser/parser'; ThreadPage, TimeagoPipe, NewPostModal, + PostMenu, ParserPipe ], imports: [ @@ -35,7 +36,8 @@ import { ParserPipe } from '../pipes/parser/parser'; LoginPage, StreamPage, ThreadPage, - NewPostModal + NewPostModal, + PostMenu ], providers: [ StatusBar, diff --git a/src/pages/stream/stream.html b/src/pages/stream/stream.html index 3af6ff2..e76d835 100644 --- a/src/pages/stream/stream.html +++ b/src/pages/stream/stream.html @@ -82,11 +82,11 @@
{{ post.counts.replies }}
- - + + +` +}) +export class PostMenu { + + showDelBtn: boolean = false; + + constructor(public navParams: NavParams, public viewCtrl: ViewController) {} + + // buttonState() { + // return this.showDelBtn ? _.state : _; + // } + + close() { + this.viewCtrl.dismiss(); + } +} diff --git a/src/theme/variables.scss b/src/theme/variables.scss index 496422a..b5991d1 100644 --- a/src/theme/variables.scss +++ b/src/theme/variables.scss @@ -29,7 +29,7 @@ $colors: ( danger: #f53d3d, light: #f4f4f4, dark: #222, - mention: #fffde7 + mention: #f0f0f0 );