This repository was archived by the owner on Feb 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
app/components/editor/app-editor-toolbar Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -607,15 +607,23 @@ export class AppEditorToolbar {
607607 render ( ) {
608608 return [
609609 < div class = { this . displayed ? "editor-toolbar displayed" : "editor-toolbar" } >
610- { this . renderActions ( ) }
610+ { this . renderDelete ( ) }
611611 { this . renderSlotType ( ) }
612+ { this . renderActions ( ) }
612613 { this . renderCodeOptions ( ) }
613614 </ div > ,
614615 < input type = "color" name = "color-picker" value = { this . color } > </ input > ,
615616 < input type = "color" name = "background-picker" value = { this . background } > </ input >
616617 ] ;
617618 }
618619
620+ private renderDelete ( ) {
621+ return < a onClick = { ( ) => this . deleteElement ( ) }
622+ class = { this . deckBusy && this . deckOrSlide ? "disabled" : undefined } >
623+ < ion-icon name = "trash" > </ ion-icon >
624+ </ a >
625+ }
626+
619627 private renderActions ( ) {
620628 const styleColor = {
621629 'border-bottom' : '2px solid ' + this . color
@@ -625,10 +633,7 @@ export class AppEditorToolbar {
625633 'border-bottom' : '2px solid ' + this . background
626634 } ;
627635
628- return [ < a onClick = { ( ) => this . deleteElement ( ) }
629- class = { this . deckBusy && this . deckOrSlide ? "disabled" : undefined } >
630- < ion-icon name = "trash" > </ ion-icon >
631- </ a > ,
636+ return [
632637 < a onClick = { ( e : UIEvent ) => this . openForDeckOrSlide ( e , this . openColorPicker ) } >
633638 < ion-label style = { styleColor } > A</ ion-label >
634639 </ a > ,
Original file line number Diff line number Diff line change 88import '@stencil/core' ;
99
1010import '@ionic/core' ;
11+ import 'ionicons' ;
1112import 'deckdeckgo' ;
1213import 'deckdeckgo-highlight-code' ;
1314import 'deckdeckgo-inline-editor' ;
1415import 'deckdeckgo-qrcode' ;
1516import 'deckdeckgo-remote' ;
16- import 'ionicons' ;
1717import {
1818 EventEmitter ,
1919} from '@stencil/core' ;
You can’t perform that action at this time.
0 commit comments