Commit 2fcf047d authored by Alain Takoudjou's avatar Alain Takoudjou

erp5_web_mynij_search: fix import/export logo image with torrent

parent 89b1c975
......@@ -9,9 +9,11 @@
})
.declareMethod('render', function (options) {
var state_dict = {
src: options.value.url,
alt: options.description || options.key
var field_dict = options || {},
img_dict = field_dict.value || {},
state_dict = {
src: img_dict.url,
alt: field_dict.description || field_dict.key
};
return this.changeState(state_dict);
})
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>995.15798.64686.52838</string> </value>
<value> <string>995.15802.3226.49885</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1633351322.93</float>
<float>1633354895.07</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -44,7 +44,7 @@
<ul>
<li>
<a href="https://publisher.mynij.com" target="_blank" class="ui-btn ui-btn-icon-left ui-icon-upload upload" data-i18n="Contribute new Source">Contribute new Source</a>
<a href="https://store.mynij.com" target="_blank" class="ui-btn ui-btn-icon-left ui-icon-puzzle-piece store" data-i18n="Mynij Source Store">Mynij Source Store</a>
<a href="https://store.mynij.com" class="ui-btn ui-btn-icon-left ui-icon-puzzle-piece store" data-i18n="Mynij Source Store">Mynij Source Store</a>
</li>
</ul>
</div>
......
......@@ -238,7 +238,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>994.55236.64197.24132</string> </value>
<value> <string>994.59702.18641.5717</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -256,7 +256,7 @@
</tuple>
<state>
<tuple>
<float>1632139577.05</float>
<float>1633359969.66</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -378,6 +378,7 @@
title: doc.title,
links: doc.links,
description: doc.description,
logo: doc.logo,
magnet_uri: torrent.magnetURI,
status: "built"
})
......@@ -534,7 +535,8 @@
.push(function (index_blob) {
var doc = {title: index_doc.title,
links: index_doc.links,
description: index_doc.description},
description: index_doc.description,
logo: index_doc.logo},
index_file_list = [index_blob];
// Add index document to blob
index_file_list.push(new File(
......
......@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>1632998940.56</float>
<float>1633361100.48</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -129,7 +129,7 @@
doc.links = source_list[i].links;
doc.status = "not built";
doc.description = source_list[i].description || "";
doc.logo = source_list[i].logo || "";
doc.logo = source_list[i].logo;
promise_list.push(gadget.state.model_gadget.createIndexDoc(doc));
}
return new RSVP.Queue()
......
......@@ -242,7 +242,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>995.8525.39594.2952</string> </value>
<value> <string>995.15583.50925.35720</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>1633338226.61</float>
<float>1633353592.58</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -281,7 +281,7 @@
"type": "string"
}
},
"additionalProperties": false,
"additionalProperties": true,
"required": [
"title",
"description",
......
......@@ -242,7 +242,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>995.15678.22615.13038</string> </value>
<value> <string>995.15680.19915.42376</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>1633344018.22</float>
<float>1633360071.9</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment