* [PATCH 0/2] [toaster] Correctly disable build button
@ 2015-09-03 14:43 Elliot Smith
2015-09-03 14:43 ` [PATCH 1/2] toaster: disable build button as needed Elliot Smith
2015-09-03 14:43 ` [PATCH 2/2] toaster: show incomplete configuration warning Elliot Smith
0 siblings, 2 replies; 3+ messages in thread
From: Elliot Smith @ 2015-09-03 14:43 UTC (permalink / raw)
To: bitbake-devel
The 'build' button is enabled after project selection, and whenever a
valid project is selected. This means you could start a build
without specifying a target.
These patches ensure that the build button is correctly disabled
and fixes how the incomplete configuration warning is shown.
The following changes since commit c80b582212336044c55052ad0d39f9da06d71438:
debianutils: create package for run-parts (2015-09-03 12:43:33 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib elliot/submit/bbarrosp/build-button
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=elliot/submit/bbarrosp/build-button
Belen Barros Pena (2):
toaster: disable build button as needed
toaster: show incomplete configuration warning
lib/toaster/toastergui/static/css/default.css | 1 +
lib/toaster/toastergui/static/js/base.js | 2 --
lib/toaster/toastergui/templates/base.html | 8 +++++---
3 files changed, 6 insertions(+), 5 deletions(-)
--
1.9.3
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] toaster: disable build button as needed
2015-09-03 14:43 [PATCH 0/2] [toaster] Correctly disable build button Elliot Smith
@ 2015-09-03 14:43 ` Elliot Smith
2015-09-03 14:43 ` [PATCH 2/2] toaster: show incomplete configuration warning Elliot Smith
1 sibling, 0 replies; 3+ messages in thread
From: Elliot Smith @ 2015-09-03 14:43 UTC (permalink / raw)
To: bitbake-devel
From: Belen Barros Pena <belen.barros.pena@intel.com>
Make sure that the 'build' button in the 'new build'
form is disabled whenever the 'recipe(s)' text
field is empty.
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
---
lib/toaster/toastergui/static/js/base.js | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/toaster/toastergui/static/js/base.js b/lib/toaster/toastergui/static/js/base.js
index eba9c16..e0df463 100644
--- a/lib/toaster/toastergui/static/js/base.js
+++ b/lib/toaster/toastergui/static/js/base.js
@@ -82,7 +82,6 @@ function basePageInit(ctx) {
return;
}
-
/* Hide the change project icon when there is only one project */
if (ctx.numProjects === 1) {
$('#project .icon-pencil').hide();
@@ -140,7 +139,6 @@ function basePageInit(ctx) {
/* we can build this project; enable input fields */
newBuildTargetInput.removeAttr("disabled");
- newBuildTargetBuildBtn.removeAttr("disabled");
}
}, null);
}
--
1.9.3
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] toaster: show incomplete configuration warning
2015-09-03 14:43 [PATCH 0/2] [toaster] Correctly disable build button Elliot Smith
2015-09-03 14:43 ` [PATCH 1/2] toaster: disable build button as needed Elliot Smith
@ 2015-09-03 14:43 ` Elliot Smith
1 sibling, 0 replies; 3+ messages in thread
From: Elliot Smith @ 2015-09-03 14:43 UTC (permalink / raw)
To: bitbake-devel
From: Belen Barros Pena <belen.barros.pena@intel.com>
In the new build button form, make sure we show a
warning when you select a project with an incomplete
configuration that cannot be built.
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
---
lib/toaster/toastergui/static/css/default.css | 1 +
lib/toaster/toastergui/templates/base.html | 8 +++++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/lib/toaster/toastergui/static/css/default.css b/lib/toaster/toastergui/static/css/default.css
index e252dc1..9723db3 100644
--- a/lib/toaster/toastergui/static/css/default.css
+++ b/lib/toaster/toastergui/static/css/default.css
@@ -216,6 +216,7 @@ dl textarea { resize: vertical; }
.tooltip-inner { max-width: 250px; }
.new-build { padding: 20px; }
.new-build li { line-height: 30px; }
+.new-build li .alert { line-height: 20px; width: 200px; white-space: normal; }
.new-build h6 { margin: 10px 0 0 0; color: #5a5a5a; }
.new-build h3 { margin: 0; color: #5a5a5a; }
.new-build form { margin: 5px 0 0; }
diff --git a/lib/toaster/toastergui/templates/base.html b/lib/toaster/toastergui/templates/base.html
index 0b93bb3..640bc47 100644
--- a/lib/toaster/toastergui/templates/base.html
+++ b/lib/toaster/toastergui/templates/base.html
@@ -148,9 +148,11 @@
<p><a id="view-all-projects" href="{% url 'all-projects' %}">View all projects</a></p>
</form>
</li>
- <li style="display: none">
- This project's configuration is incomplete,<br/>so you cannot run builds.<br/>
- <p><a href="{% if project.id %}{% url 'project' project.id %}{% endif %}">View project configuration</a></p>
+ <li>
+ <div class="alert" style="display:none;">
+ <p>This project configuration is incomplete, so you cannot run builds.</p>
+ <p><a href="{% if project.id %}{% url 'project' project.id %}{% endif %}">View project configuration</a></p>
+ </div>
</li>
<li id="targets-form">
<h6>Recipe(s):</h6>
--
1.9.3
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-03 14:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-03 14:43 [PATCH 0/2] [toaster] Correctly disable build button Elliot Smith
2015-09-03 14:43 ` [PATCH 1/2] toaster: disable build button as needed Elliot Smith
2015-09-03 14:43 ` [PATCH 2/2] toaster: show incomplete configuration warning Elliot Smith
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.