File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ import Commands, {Command} from './commands';
12
12
import FilePatchSelection from './file-patch-selection' ;
13
13
import Switchboard from '../switchboard' ;
14
14
15
+ const executableText = {
16
+ 100644 : 'non executable <code>100644</code>' ,
17
+ 100755 : 'executable <code>100755</code>' ,
18
+ } ;
19
+
15
20
export default class FilePatchView extends React . Component {
16
21
static propTypes = {
17
22
commandRegistry : PropTypes . object . isRequired ,
@@ -297,12 +302,12 @@ export default class FilePatchView extends React.Component {
297
302
</ header >
298
303
< div className = "github-FilePatchView-metaDetails" >
299
304
File changed mode
300
- < span className = "github-FilePatchView-metaDiff github-FilePatchView-metaDiff--removed" >
301
- from < code > { executableModeChange . oldMode } </ code >
302
- </ span >
303
- < span className = "github-FilePatchView-metaDiff github-FilePatchView-metaDiff--added" >
304
- to < code > { executableModeChange . newMode } </ code >
305
- </ span >
305
+ < span className = "github-FilePatchView-metaDiff github-FilePatchView-metaDiff--removed"
306
+ dangerouslySetInnerHTML = { { __html : ' from ' + executableText [ executableModeChange . oldMode ] } }
307
+ / >
308
+ < span className = "github-FilePatchView-metaDiff github-FilePatchView-metaDiff--added"
309
+ dangerouslySetInnerHTML = { { __html : ' to ' + executableText [ executableModeChange . newMode ] } }
310
+ / >
306
311
</ div >
307
312
</ div >
308
313
</ div >
You can’t perform that action at this time.
0 commit comments