@@ -65,9 +65,9 @@ export const SERVER: INavigationItem = {
6565} ;
6666
6767export function getDisabledItems ( store : any ) : INavigationItem [ ] {
68- const { currentSandbox } = store . editor ;
68+ const { sandbox } = store . editor ;
6969
70- if ( ! currentSandbox . owned || ! store . isLoggedIn ) {
70+ if ( ! sandbox . owned || ! store . isLoggedIn ) {
7171 return [ GITHUB , DEPLOYMENT , LIVE ] ;
7272 }
7373
@@ -77,7 +77,7 @@ export function getDisabledItems(store: any): INavigationItem[] {
7777export default function getItems ( store : any ) : INavigationItem [ ] {
7878 if (
7979 store . live . isLive &&
80- ! store . editor . currentSandbox . git &&
80+ ! store . editor . sandbox . git &&
8181 ! (
8282 store . live . isOwner ||
8383 ( store . user &&
@@ -89,27 +89,27 @@ export default function getItems(store: any): INavigationItem[] {
8989 return [ FILES , LIVE ] ;
9090 }
9191
92- const { currentSandbox } = store . editor ;
92+ const { sandbox } = store . editor ;
9393
94- if ( ! currentSandbox . owned ) {
94+ if ( ! sandbox . owned ) {
9595 return [ PROJECT_SUMMARY , CONFIGURATION ] ;
9696 }
9797
98- const isCustomTemplate = ! ! currentSandbox . customTemplate ;
98+ const isCustomTemplate = ! ! sandbox . customTemplate ;
9999 const items = [
100100 isCustomTemplate ? PROJECT_TEMPLATE : PROJECT ,
101101 FILES ,
102102 CONFIGURATION ,
103103 ] ;
104104
105- if ( store . isLoggedIn && currentSandbox ) {
106- const templateDef = getTemplate ( currentSandbox . template ) ;
105+ if ( store . isLoggedIn && sandbox ) {
106+ const templateDef = getTemplate ( sandbox . template ) ;
107107 if ( templateDef . isServer ) {
108108 items . push ( SERVER ) ;
109109 }
110110 }
111111
112- if ( store . isLoggedIn && currentSandbox && ! currentSandbox . git ) {
112+ if ( store . isLoggedIn && sandbox && ! sandbox . git ) {
113113 items . push ( GITHUB ) ;
114114 }
115115
@@ -119,8 +119,8 @@ export default function getItems(store: any): INavigationItem[] {
119119
120120 if (
121121 store . isLoggedIn &&
122- currentSandbox &&
123- hasPermission ( currentSandbox . authorization , 'write_code' )
122+ sandbox &&
123+ hasPermission ( sandbox . authorization , 'write_code' )
124124 ) {
125125 items . push ( LIVE ) ;
126126 }
0 commit comments