diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/base.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/base.js b/bitbake/lib/toaster/toastergui/static/js/base.js index 6042a96ee4..ed22a4ebc1 100644 --- a/bitbake/lib/toaster/toastergui/static/js/base.js +++ b/bitbake/lib/toaster/toastergui/static/js/base.js | |||
@@ -121,14 +121,14 @@ function basePageInit(ctx) { | |||
121 | }); | 121 | }); |
122 | 122 | ||
123 | function _checkProjectBuildable() { | 123 | function _checkProjectBuildable() { |
124 | if (selectedProject.projectId === undefined) { | 124 | if (selectedProject.projectId === undefined || selectedProject.projectIsDefault) { |
125 | return; | 125 | return; |
126 | } | 126 | } |
127 | 127 | ||
128 | libtoaster.getProjectInfo(selectedProject.projectPageUrl, | 128 | libtoaster.getProjectInfo(selectedProject.projectPageUrl, |
129 | function (data) { | 129 | function (data) { |
130 | if (data.machine === null || data.machine.name === undefined || data.layers.length === 0) { | 130 | if (data.machine === null || data.machine.name === undefined || data.layers.length === 0) { |
131 | /* we can't build anything with out a machine and some layers */ | 131 | /* we can't build anything without a machine and some layers */ |
132 | $("#new-build-button #targets-form").hide(); | 132 | $("#new-build-button #targets-form").hide(); |
133 | $("#new-build-button .alert").show(); | 133 | $("#new-build-button .alert").show(); |
134 | } else { | 134 | } else { |
@@ -147,7 +147,7 @@ function basePageInit(ctx) { | |||
147 | /* If we don't have a current project then present the set project | 147 | /* If we don't have a current project then present the set project |
148 | * form. | 148 | * form. |
149 | */ | 149 | */ |
150 | if (selectedProject.projectId === undefined) { | 150 | if (selectedProject.projectId === undefined || selectedProject.projectIsDefault) { |
151 | $('#change-project-form').show(); | 151 | $('#change-project-form').show(); |
152 | $('#project .icon-pencil').hide(); | 152 | $('#project .icon-pencil').hide(); |
153 | } | 153 | } |