mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 00:32:12 +02:00
bitbake: toaster: layerdetails Remove compatibility setting
Remove the layer compatibility configuration option from the layer details as this is not in the design. (Bitbake rev: c46492f5599da8af16af05ecc2d7aa7a8660416b) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
025533d90b
commit
ce784879f4
@@ -309,8 +309,6 @@ function layerDetailsPageInit (ctx) {
|
||||
var entryElement = mParent.find("input");
|
||||
if (entryElement.length == 0)
|
||||
entryElement = mParent.find("textarea");
|
||||
if (entryElement.length == 0)
|
||||
entryElement = mParent.find("select");
|
||||
if (entryElement.length == 0) {
|
||||
console.warn("Could not find element to get data from for this change");
|
||||
return;
|
||||
@@ -331,12 +329,8 @@ function layerDetailsPageInit (ctx) {
|
||||
/* success layer property changed */
|
||||
var inputArea = mParent.parents("dd");
|
||||
var text;
|
||||
/* We don't actually want the value from the select option we want
|
||||
* the text that represents the value to display
|
||||
*/
|
||||
text = entryElement.children("option:selected").text();
|
||||
if (!text)
|
||||
text = entryElement.val();
|
||||
|
||||
text = entryElement.val();
|
||||
|
||||
/* Hide the "Not set" text if it's visible */
|
||||
inputArea.find(".muted").hide();
|
||||
|
||||
@@ -160,26 +160,7 @@
|
||||
</form>
|
||||
<i class="icon-pencil"></i>
|
||||
</dd>
|
||||
<dt>
|
||||
<i class="icon-question-sign get-help" title="The Yocto Project versions with which this layer is compatible. Currently Toaster supports Yocto Project 1.6 and 1.7"></i>
|
||||
Yocto Project compatibility
|
||||
</dt>
|
||||
<dd>
|
||||
<span class="current-value">{{layerversion.up_branch.name}}</span>
|
||||
<form style="display:none">
|
||||
<div class="input-append">
|
||||
<select name="projectversion" id="projectversion">
|
||||
{% for compat in yocto_compat %}
|
||||
<option value="{{compat.id}}" {%if layerversion.up_branch.id == compat.id %} selected{%endif%}>{{compat.name}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<button data-layer-prop="up_branch" class="btn change-btn" type="button">Save</button>
|
||||
<a href="#" style="display:none" class="btn btn-link cancel">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
<i class="icon-pencil"></i>
|
||||
</dd>
|
||||
<dt>
|
||||
<dt>
|
||||
<i class="icon-question-sign get-help" title="Other layers this layer depends upon"></i>
|
||||
Layer dependencies
|
||||
</dt>
|
||||
|
||||
@@ -2524,7 +2524,6 @@ if toastermain.settings.MANAGED:
|
||||
context = {
|
||||
'layerversion': layer_version,
|
||||
'layer_in_project' : ProjectLayer.objects.filter(project_id=request.session['project_id'],layercommit=layerid).count(),
|
||||
'yocto_compat': Branch.objects.filter(layer_source=layer_version.layer_source),
|
||||
'machines': machines,
|
||||
'targets': targets,
|
||||
'total_targets': Recipe.objects.filter(layer_version=layer_version).count(),
|
||||
|
||||
Reference in New Issue
Block a user