@@ -4,6 +4,7 @@ import { CommandBar, ICommandBarItemProps } from 'office-ui-fabric-react/lib/Com
44import { getTheme } from '@uifabric/styling' ;
55import SettingsModal , { SettingsChanges } from './settings/SettingsModal' ;
66import AboutModal from './AboutModal' ;
7+ import config from './services/config' ;
78import {
89 Connect ,
910 newImportFileDispatcher ,
@@ -89,6 +90,16 @@ export class Header extends React.Component<any, HeaderState> {
8990 onClick : ( ) => {
9091 this . props . dispatch ( saveFileDispatcher ) ;
9192 } ,
93+ } ,
94+ {
95+ key : 'settings' ,
96+ text : 'Settings' ,
97+ ariaLabel : 'Settings' ,
98+ iconProps : { iconName : 'Settings' } ,
99+ disabled : this . props . loading ,
100+ onClick : ( ) => {
101+ this . setState ( { showSettings : true } ) ;
102+ }
92103 }
93104 ] ;
94105 }
@@ -122,21 +133,23 @@ export class Header extends React.Component<any, HeaderState> {
122133 get overflowItems ( ) : ICommandBarItemProps [ ] {
123134 return [
124135 {
125- key : 'settings' ,
126- text : 'Settings' ,
127- ariaLabel : 'Settings' ,
128- iconOnly : true ,
129- iconProps : { iconName : 'Settings' } ,
130- disabled : this . props . loading ,
131- onClick : ( ) => {
132- this . setState ( { showSettings : true } ) ;
133- }
136+ key : 'new-issue' ,
137+ text : 'Submit Issue' ,
138+ ariaLabel : 'Submit Issue' ,
139+ iconProps : { iconName : 'Bug' } ,
140+ onClick : ( ) => window . open ( config . issueUrl , '_blank' )
141+ } ,
142+ {
143+ key : 'donate' ,
144+ text : 'Donate' ,
145+ ariaLabel : 'Donate' ,
146+ iconProps : { iconName : 'Heart' } ,
147+ onClick : ( ) => window . open ( config . donateUrl , '_blank' )
134148 } ,
135149 {
136150 key : 'about' ,
137151 text : 'About' ,
138152 ariaLabel : 'About' ,
139- iconOnly : true ,
140153 iconProps : { iconName : 'Info' } ,
141154 onClick : ( ) => {
142155 this . setState ( { showAbout : true } ) ;
0 commit comments